Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh with multiple keys fails to use the right one #232

Open
dnlmengs opened this issue Dec 1, 2016 · 0 comments
Open

ssh with multiple keys fails to use the right one #232

dnlmengs opened this issue Dec 1, 2016 · 0 comments

Comments

@dnlmengs
Copy link

dnlmengs commented Dec 1, 2016

Even with all the keys configured in the user's .ssh/config file, added to the ssh agent and the right private key file selected by command line, net-ssh fails to select the right key.

example run:

from the development machine, with key dd:20:8d:5d:27:df:a2:bb:ae:6d:11:55:40:b6:a7:b0:
(id from ~$ ssh-keygen -l -E md5 -f ~/.ssh/id_rsa.pub)

~/itamae_project$ itamae ssh -y nodes/test.yml -h test -u user -i ~/.ssh/id_rsa recipe.rb
 INFO : Starting Itamae...
 INFO : Loading node data from /home/rhialto/src/wape/itamae_infra/nodes/test.yml...
/home/user/.rvm/gems/ruby-2.3.1@itamae/gems/net-ssh-3.2.0/lib/net/ssh/transport/session.rb:198:in `block in poll_message': disconnected: Too many authentication failures for user from 49.49.49.49 port 33208 ssh2 (2) (Net::SSH::Disconnect)

server's ssh daemon log in debug mode from the same run:

... not interesting ...
sshd[3578]: Connection from 49.49.49.49 port 33208 on 192.168.17.4 port 22
...
sshd[3578]: Failed publickey for user from 49.49.49.49 port 33208 ssh2: RSA fd:ec:7a:29:ea:d3:48:7b:d7:4a:77:d2:bf:8f:09:fc
...
sshd[3578]: Failed publickey for user from 49.49.49.49 port 33208 ssh2: RSA eb:e3:42:1e:25:3a:cc:f1:50:ab:99:69:9d:dd:c2:bc
...
sshd[3578]: Failed publickey for user from 49.49.49.49 port 33208 ssh2: RSA a7:99:7e:1e:ce:74:bd:e3:d7:f9:cf:be:e3:88:af:06
...
sshd[3578]: Failed publickey for user from 49.49.49.49 port 33208 ssh2: RSA 86:6e:d6:de:e5:94:af:90:28:ef:a7:bd:37:95:de:e5
...
sshd[3578]: Failed publickey for user from 49.49.49.49 port 33208 ssh2: RSA ed:38:c0:f3:42:47:60:41:4c:97:8a:9b:a1:b2:6d:f1
...
sshd[3578]: Failed publickey for user from 49.49.49.49 port 33208 ssh2: RSA f3:1d:13:8f:ad:7a:26:b4:83:12:61:38:51:d8:50:af
sshd[3578]: Disconnecting: Too many authentication failures for user from 49.49.49.49 port 33208 ssh2 [preauth]
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant