3

Known SSH server always ask my password on the first connection, following connections use key authenticating

view full story
linux-howto

http://serverfault.com – When I try to connect to a certain server (present in ~/.ssh/known_hosts) where I copied my public key, it always asks my password. If I close the connection and try again it uses my key correctly. If I try to connect again after a hour or two, it will ask my password again. 1st connection: aurelien ~ > ssh -v fac OpenSSH_5.9p1, OpenSSL 1.0.0e 6 Sep 2011 debug1: Reading configuration data /home/aurelien/.ssh/config debug1: /home/aurelien/.ssh/config line 27: Applying options for fac debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to zzzzzzzz.univ-lyon1.fr [a.b.c. (HowTos)