本地机器ssh连接服务器时,提示Permission denied (publickey,password)
root@192.168.78.131’s password:
Permission denied, please try again.
root@192.168.78.131’s password:
Permission denied, please try again.
root@192.168.78.131’s password:
root@192.168.78.131: Permission denied (publickey,password).
解决方法
遇到这样的情况,如果不是密码错误,并且服务器上的sshd服务已经开启,则需要修改服务器的配置文件/etc/ssh/sshd_config
PermitRootLogin yes
PubkeyAuthentication no
PasswordAuthentication yes
保存后重启sshd服务即可
sudo service sshd restart