1、安裝ssh服務
sudo apt-get install openssh-server
2、修改配置文件
sudo vi /etc/ssh/sshd_config
#PermitRootLogin without-password #注釋掉這行
PermitRootLogin yes #增加這行
#重啟服務
/etc/init.d/ssh restart
3、遠程連接報下面錯誤,解決方法同上
[root@salt ~]# ssh root@192.168.141.77
Permission denied (publickey,password).