SSHは鍵を通した後もパスワードが必要です
その他の原因によるこの問題:一、プロファイルsshd_configは設定が必要です
二、ファイル権限の問題
上記以外の理由でSSHオン鍵にパスワードログインが必要な場合は、ログ/var/log/secureを表示する必要があります.たとえば、Authentication refused:bad ownership or modes for directory/root
ホスト・ユーザーがrootであることを確認するには、/root/ディレクトリ権限を表示する必要があります.
修復方法:chown root:root-R/root
vim /etc/ssh/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
SSH
二、ファイル権限の問題
chmod 700 ~/. ssh /
chmod 700 /home/userName
chmod 600 ~/. ssh /authorized_keys
上記以外の理由でSSHオン鍵にパスワードログインが必要な場合は、ログ/var/log/secureを表示する必要があります.たとえば、Authentication refused:bad ownership or modes for directory/root
ホスト・ユーザーがrootであることを確認するには、/root/ディレクトリ権限を表示する必要があります.
修復方法:chown root:root-R/root