CentOS 7.9ではSSH公開鍵認証は失敗しますが、7.8では失敗します。

CentOS 7.9ではSSH公開鍵認証は失敗しますが、7.8では失敗します。

SSHを介して多くのサーバーにアクセスできます。その一部はCentOS 7.8.2003を実行しており、一部は7.9.2009を実行しています。 7.8サーバーに問題なく接続できますが、7.9ではパスワード認証を使用する必要があります。

ssh -i .ssh/keyfile centos79これは実行の結果です。centos79

debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: .ssh/keyfile
debug3: sign_and_send_pubkey: RSA SHA256:...
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password

ssh -i .ssh/keyfile centos78うまくcentos79いきます。

keyfile一致しssh -Q keyssh -Q cipher

私のホームディレクトリはautofsすべてのサーバーにインストールされ、すべてのサーバー間で共有されます。

~755です。 ~/.ssh600です~/.ssh/authorized_keys~/.ssh/keyfile

sshdOpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 20177.8と7.9のレポート。

どちらにも親ディレクトリが~ありますsecurity.selinux (len 30)。どちらも755です。~この地域には何もありません。

走ることはrestorecon -Rv ~/.ssh役に立ちません。

設定の確認/デバッグの実行/ログを確認するためのrootアクセス権がありません。ほとんどすべてがデフォルト設定を使用しているとします。

どんな洞察力にも感謝します。ありがとうございます!

編集:7.8サーバーが見つかりました。サーバーも正常に動作しているため、7.9にのみ問題があります...

ベストアンサー1

おすすめ記事