I am running Ubuntu 11.10 and using autosshfs, a per user SSHFS automount using user’s SSH config and keys. This works great except that Gnome Keyring isn't remembering the authentication and constantly prompts for the password to the key when remounting (after ssh timeout).
My RSA keys reside inside
~/.ssh with the very restrictive
0400 permissions. I've added the private keys to the keyring with
ssh-add and the public keys to
authenticated_keys. I can confirm that they are in the keyring since they show up when I run
auth.log looks like this:
Oct 5 14:01:34 flax sudo: root : TTY=unknown ; PWD=/ ; USER=oddy ; COMMAND=/bin/bash -c \/usr\/local\/sbin\/autosshfs-ssh remotehost\.com; Oct 5 14:13:45 flax sudo: oddy : TTY=pts/0 ; PWD=/home/oddy ; USER=root ; COMMAND=/bin/cat /var/log/auth.log Oct 5 14:14:51 sudo: last message repeated 2 times Oct 5 14:17:01 flax CRON: pam_unix(cron:session): session opened for user root by (uid=0) Oct 5 14:17:01 flax CRON: pam_unix(cron:session): session closed for user root Oct 5 14:36:36 flax login: pam_unix(login:session): session opened for user oddy by LOGIN(uid=0) Oct 5 14:38:11 flax login: pam_unix(login:session): session closed for user oddy
I can't find anything in there that would suggests that it's failing. SSH:ing to the remote host through console doesn't prompt for a password, so the keyring does work for that specific key, just not together with autosshfs.