SSH automatic logon works for one user but not the other
Posted
by
tinmaru
on Server Fault
See other posts from Server Fault
or by tinmaru
Published on 2012-11-10T12:01:41Z
Indexed on
2012/11/10
17:04 UTC
Read the original article
Hit count: 224
I want to enable automatic ssh login using the .ssh/config file for my git user.
Here is my .ssh/config file:
Host test
HostName myserver.net
User test
IdentityFile ~/.ssh/id_rsa
Host git
HostName myserver.net
User git
IdentityFile ~/.ssh/id_rsa
It works for my test user but not for my git user so my global SSH configuration is correct.
The configuration are exactly the same as far as I know. It used to work with git user but I'm unable what change has broken the automatic logon.
When I type:
ssh -v git
I get the following log:
...
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
Offering RSA public key: /Users/mylocalusername/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
[email protected]'s password: _
Does anyone know what could be a possible difference
© Server Fault or respective owner