31
26

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ssh接続でToo many authentication failuresが出る

Posted at

課題

ssh-agentに鍵を追加すると、ログインするときに下記のエラーが表示された。
Received disconnect from local_id: 2: Too many authentication failures for yamaura

原因

ログインしようとした環境はパスワード認証にも関わらず、鍵認証でログインしようとしているため。

解決策

パスワードを使うようにする。

下記のコマンドでログインする。

ssh ip_adress -A -l user_name -o PreferredAuthentications=password

もしくは~/.ssh/config に下記設定を行う。

Host dev
  HostName id_adress
  User user_name
  IdentitiesOnly yes

参考

http://d.hatena.ne.jp/modified/20120612/1339492459
https://blogs.da-cha.jp/index.php/momokuri/aws-ssh-too-many-authentication

31
26
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
31
26

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?