远程ssh到linux系统突然提示Permission denied, please try again,再三确认密码正确依然上不去。
找了很多资料都是sshd的配置文件/etc/ssh/sshd_config
修改如下:(原配置文件取消注释掉)
PermitRootLogin yes
修改后发现还是登录不上,再仔细查看配置文件,如下:
需要把PermitRootLogin yes 注释掉;
[root@nginx01 .ssh]# vi /etc/ssh/sshd_config
#######################################################################
# ! ! ! ! ! IMPORTANT ! ! ! ! ! #
# * Your system has detected a weak password for root account and for #
# security reasons, remote access via SSH has been blocked to prevent #
# unauthorized access. In order to enable again remote access to this #
# machine for root user via SSH, set a new complex password for root #
# account and delete 'DenyUsers root' line below on this config file. #
# * Restarting the SSH Daemon is required for changes to take effect. #
# #
# Bash commands: #
# passwd root (Changes your root password). #
# service sshd restart (Restart the SSH Daemon). #
#DenyUsers root
#######################################################################