breaks password-based SSH when there are too many SSH keys
When one has several public SSH keys available, gnome-keyring breaks any attempt to use password-based SSH authentication. The -v
log from ssh looks something like this:
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: XXXX
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: XXXX
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: XXXX
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: XXXX
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: XXXX
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: XXXX
debug2: we sent a publickey packet, wait for reply
Received disconnect from XXX: Too many authentication failures
Adding -o PreferredAuthentications=password
fixes the problem, but that really should not be necessary -- and it is pretty hard to find out.
(Also see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869890 and https://bugzilla.gnome.org/show_bug.cgi?id=790921)
Edited by Ralf Jung