【将主机变为服务器,ssh连接出现access denied】教程文章相关的互联网学习教程文章

将主机变为服务器,ssh连接出现access denied

解决方法是:修改/etc/ssh/ssh_config文件,#PermitRootLogin prohibit-password改为PermitRootLogin yes 然后 PasswordAuthentication yes最后,设置root的密码。passwd root。重启ssh(/etc/init.d/ssh restart)之后就可以了。原文:https://www.cnblogs.com/Alei777/p/14928560.html