1. 问题
ssh连接时报以下错误:
$ ssh root@192.168.1.104
root@192.168.1.104's password:
Permission denied, please try again.
2. 原因
系统默认禁止root用户登录ssh
3. 解决
(1)修改/etc/ssh/sshd_config文件
vi /etc/ssh/sshd_config

PermitRootLogin without-password
改为
PermitRootLogin yes
(2)重启ssh
sudo service ssh restart