admin 管理员组

文章数量: 1184232

检查一下/etc/ssh/sshd_config,看看PermitRootLogin 项

该文件的内容是:

# Set this to 'yes' to enable PAM keyboard-interactive authentication
# Warning: enabling this may bypass the setting of 'PasswordAuthentication'
#PAMAuthenticationViaKbdInt no

#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#KeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression yes

#MaxStartups 10
# no default banner path
#Banner /some/path
#VerifyReverseMapping no

# override default of no subsystems
Subsystem    sftp /usr/libexec/openssh/sftp-server

把该项改为yes即可

本文标签: 密码 系统 可以直接 提示 用户