Can't login via ssh with public key because of encryptfs

Bug #361984 reported by sasha
2
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

I'm running on development version of Jaunty.

It seems that I can't login via ssh with public key because of encryptfs.

ssh -v -p 1022 10.0.0.1 shows:

...
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /home/sasha/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: id_dsa
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: id_dsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/sasha/.ssh/identity
debug1: Trying private key: /home/sasha/.ssh/id_rsa
debug1: Next authentication method: password

cat /var/log/auth.log | grep ssh shows:

Apr 16 00:53:58 ubuntu sshd[31597]: pam_sm_authenticate: Called
Apr 16 00:53:58 ubuntu sshd[31597]: pam_sm_authenticate: username = [sasha]
Apr 16 00:53:58 ubuntu sshd[31597]: Warning: Using default salt value (undefined in ~/.ecryptfsrc)
Apr 16 00:54:02 ubuntu sshd[31617]: Passphrase key already in keyring; rc = [1]
Apr 16 00:54:02 ubuntu sshd[31617]: ecryptfs_add_passphrase_key_to_keyring: Error adding auth tok with sig [a9a45ab9bd111d61] to the keyring; rc = [1]
Apr 16 00:54:02 ubuntu sshd[31617]: Error attempting to add filename encryption key to user session keyring; rc = [1]
Apr 16 00:54:03 ubuntu sshd[31617]: Passphrase key already in keyring; rc = [1]
Apr 16 00:54:03 ubuntu sshd[31617]: ecryptfs_add_passphrase_key_to_keyring: Error adding auth tok with sig [0be34e5e83e96c4f] to the keyring; rc = [1]
Apr 16 00:54:03 ubuntu sshd[31617]: Error attempting to add passphrase key to user session keyring; rc = [1]
Apr 16 00:54:03 ubuntu sshd[31617]: There is already a key in the user session keyring for the given passphrase.
Apr 16 00:54:03 ubuntu sshd[31597]: Accepted password for sasha from 10.0.0.11 port 58989 ssh2
Apr 16 00:54:03 ubuntu sshd[31597]: pam_unix(sshd:session): session opened for user sasha by (uid=0)
Apr 16 00:54:03 ubuntu sshd[31597]: Mount of private directory return code [0]

description: updated
Revision history for this message
sasha (sasha123-deactivatedaccount) wrote :

It seems that I'am wrong. Please close this bug, I guess the issue is not related to encryptfs. LogLevel of sshd shows me more details on the issue.

Adam Guthrie (therigu)
Changed in ubuntu:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.