apt-cache policy openssh-client openssh-server
ubuntu默认安装了openssh-client,openssh-server需要手动安装
apt-get install openssh-server
ps -e|grep ssh
如果出现sshd,则ssh服务已开启。如果只有agent,则尚未开启成功
/etc/init.d/ssh start
vim /etc/ssh/sshd_config
注释掉PermitRootLogin without-password
紧接在下面一行添加PermitRootLogin yes
/etc/init.d/ssh restart
ps -e|grep ssh
输入ip、登录名、密码实现远程访问ubuntu