清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
require 'net/ssh' def test_ssh_connect(address,username,password) begin Net::SSH.start(address, username, :password => password) rescue Exception => e logger.info('verify ssh failed:'+e.to_s) return true end return false end