新人学ruby---通过ruby的net-ssh链接远程的服务器
通过gem导入相关库gem install net-ssh通过ruby脚本链接到远程服务器代码例子require 'net/ssh'host = "xxx.xxx.xxx.xxx"username = "XXXX"password = "XXXXXX"# 通过start方法链接到远程主机session = Net::SSH.start(host,username,:password => p