vi /etc/ssh/sshd_configPasswordAuthentication no,将其改为PasswordAuthentication yes远程ssh才可登录否则显示Access denied最后重新启动系统.