1 判断目标主机是否安装ssh服务 ps -e | grep ssh 出现 sshd 字样就是已安装的 2 目标主机安装ssh服务 sudo apt-get install openssh-server 3 启动ssh服务 /etc/init.d/ssh start