我尝试用用一下代码实现向本地另外一台服务器发送文件 Net::SSH.start('106.80.241.252', 'root', :password => "root123") do |ssh| ssh.sftp.connect do |sftp| Dir.foreach('.') do |file| puts file end end
可是目前连接报:Errno::ECONNREFUSED (No connection could be made because the target machine actively refused it. - connect(2)):求教啊。。。