After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 580024 - ssh passwords are not stored in gnome-keyring
ssh passwords are not stored in gnome-keyring
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: sftp backend
1.2.x
Other Linux
: Normal normal
: ---
Assigned To: Tomas Bzatek
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2009-04-23 20:57 UTC by Sebastien Bacher
Modified: 2010-02-19 13:44 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
[PATCH] sftp: retain chosen password save option across mount phases (2.19 KB, patch)
2010-02-19 12:51 UTC, Tomas Bzatek
committed Details | Review

Description Sebastien Bacher 2009-04-23 20:57:46 UTC
the bug has been opened on https://bugs.launchpad.net/bugs/365662

"when mounting a sftp mount with nautilus + gvfs I enable the radio-button "Remember forever". The passwords don't appear in seahorse and are therefor not stored permanently."

That's using GNOME 2.26.1 and gvfs 1.2.2
Comment 1 Paul ALBERT 2009-05-01 20:37:56 UTC
It doesn't work neither for me !
Comment 2 Fabian 2009-08-07 08:06:50 UTC
I've also encountered the same problem on the latest Ubuntu 9.10 alpha using gvfs 1.3.3

Permanently storing passwords works perfectly for smb shares, but it does not work for sftp.

Is there any more information I can provide that would help fix this bug?
Comment 3 Fabian 2009-08-07 09:06:41 UTC
I made one observation and found a workaround for this bug. If you give a username expicitly (in the form of sftp://user@server) the password is saved correctly. If you don't supply a user in the URL the password is not saved. 
Comment 4 Jeroen Hoek 2010-01-10 15:19:08 UTC
Still present in Ubuntu 9.10 / Gnome 2.28.1. The radiobutton "remember forever" doesn't.
Comment 5 Tomas Bzatek 2010-02-19 12:51:13 UTC
Created attachment 154204 [details] [review]
[PATCH] sftp: retain chosen password save option across mount phases

Please see the patch commit message.

One thing I noticed is that we only do one attempt to login (two resp. when username changes) so we don't need to reset the password_save value on incorrect password.
Comment 6 Tomas Bzatek 2010-02-19 13:44:43 UTC
Committed to master and gnome-2-28