パスワードでSSHログインできません。プロンプトは表示されません。認証試行が失敗しすぎました。

パスワードでSSHログインできません。プロンプトは表示されません。認証試行が失敗しすぎました。

Raspberry PiにopenSUSE Leap 42.2をクリーンインストールしてログインしようとしています。この設定は完全にデフォルトであり、公開鍵は pi に保存されません。

ログインしようとすると、次のエラーが発生します。ssh [email protected]

Received disconnect from 192.168.1.56 port 22:2: Too many authentication failures
Connection to 192.168.1.56 closed by remote host.
Connection to 192.168.1.56 closed.

これを使用して、多数のssh -v公開鍵が提供されていることを示します。

debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/robert/.ssh/id_rsa
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Offering DSA public key: /home/robert/.ssh/id_dsa
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Offering RSA public key: robert@XXX
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Offering RSA public key: robert@yyy
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Offering RSA public key: robert@zzz
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Offering RSA public key: backup-login@xxx

各認証の試みが重要であり、サーバーが私と通信を中断させると思います。

もちろん、別のユーザーアカウントでログインしたときにパスワードプロンプトが表示されました。

サーバーに次のエラーメッセージが表示されます

Dec 09 20:27:18 linux sshd[1020]: error: maximum authentication attempts exceeded for root from 192.168.1.52 port 35088 ssh2 [preauth]

この問題を解決するには、以下の説明に従ってパスワード認証を強制してください。SSHクライアントがパスワード認証のみを使用するように強制する方法は?:

ssh  -o PreferredAuthentications=password -o PubkeyAuthentication=no [email protected]

今結果は

Permission denied (publickey,keyboard-interactive).

この状況では、パスワードベースのログインをどのように使用できますか?

ベストアンサー1

「パスワード」と「キーボードインタラクション」は、2つの異なる認証タイプです。ポスターは後者を提供します。したがって、優先認証リストでそれを使用する必要があります。

ssh -o PreferredAuthentications=keyboard-interactive …

おすすめ記事