Stop ssh client from offering all the public keys it can find?

Posted by Rory McCann on Server Fault See other posts from Server Fault or by Rory McCann
Published on 2010-05-08T16:58:44Z Indexed on 2010/05/08 17:08 UTC
Read the original article Hit count: 224

Filed under:
|
|
|

Like most sysadmins I use openssh all the time. I have about a dozen ssh keys, I like to have a different ssh key for each host. However this causes a problem when I am connecting to a host for the first time, and all I have is a password. I want to just connect to the host using a password, no ssh key in this case. However the ssh client will offer all the public keys in my ~/.ssh/ (I know this from looking at the output of ssh -v). Since I have so many, I will get disconnected for too many authentication failures.

Is there some way to tell my ssh client to not offer all the ssh keys?

© Server Fault or respective owner

Related posts about openssh

Related posts about ssh