Condition description
Use to ssh SERVER_IP
enter the password will prompt Permission denied , after multiple failures, it will output more (publickey, gssapi-keyex, ... words
Use ssh-copy-id SERVER_IP
an error message similar to
Solution
View the ssh server'ssshd_config
# 这项有的Linux版本默认使用的是 prohibit-password
PermitRootLogin yes
# 默认如果是 yes , 不需要管
PasswordAuthentication yes
# 以下这些,如果上面两个配置项都改了还不行
# 再来检查
# UsePAM no
# PubkeyAuthentication yes