ssh 提示 “Permission denied (publickey,gssapi-keyex, ...“

Condition description

Use to ssh SERVER_IPenter the password will prompt Permission denied , after multiple failures, it will output more (publickey, gssapi-keyex, ... words

Use ssh-copy-id SERVER_IPan error message similar to

Solution

View the ssh server'ssshd_config

# 这项有的Linux版本默认使用的是 prohibit-password
PermitRootLogin yes
# 默认如果是 yes , 不需要管
PasswordAuthentication yes
# 以下这些,如果上面两个配置项都改了还不行
# 再来检查
# UsePAM no
# PubkeyAuthentication yes

Guess you like

Origin blog.csdn.net/sean908/article/details/129709599