原因:可能是Ubuntu主机没有开启SSH服务
第一步:切换到root账户 sudo passwd ,然后一直输密码就行了
第二步:开启ssh服务
root@ubuntu:~# sudo apt-get install openssh-server
使用
root@ubuntu:~# ps -e | grep ssh
如果只有ssh-agent表示还没启动,需要
root@ubuntu:~# /etc/init.d/ssh start
如果显示sshd则说明已启动成功。
原因:可能是Ubuntu主机没有开启SSH服务
第一步:切换到root账户 sudo passwd ,然后一直输密码就行了
第二步:开启ssh服务
root@ubuntu:~# sudo apt-get install openssh-server
使用
root@ubuntu:~# ps -e | grep ssh
如果只有ssh-agent表示还没启动,需要
root@ubuntu:~# /etc/init.d/ssh start
如果显示sshd则说明已启动成功。