How to forget sftp password in Nautilus (none in seahorse)

I added the entry sftp://daniel@<somedomain> to my bookmarks in Nautilus. The first time it was accessed it asked for the password but never after that. I cannot remember which option I selected to remember (e.g. until end of session).

In any case, I want Nautilus to forget the access password and ask me every time I open the remote file system. Unmounting did not cause it to forget the password. I've also opened seahorse and this key is not there.

Any idea where the key is stored and how can I force nautilus to forget the password?


I did the same thing as you and was also surprised not to find the key in seahorse. The only way I found to make Nautilus forget the pwd was to close my session. Then nautilus asked me the password again, with the same 3 options, and I selected the 1st one.

  1. Forget the password
  2. Remember until end of session
  3. Remember forever

I think it only stores the password in seahorse when you select the 3rd option. For the 2nd option, it must store it in a temporary place that I don't know about. For the 1st option, it doesn't store it at all.


On Ubuntu 16.04, this solved the issue:

  1. Click "Search your computer" (top left corner)
  2. Type Passwords and Keys
  3. Under Passwords - Login, you can right click and delete the saved password

Reference: jamesisin's answer in this post

Hope that helps!


On Ubuntu 18.04, this solved the issue:

  1. Click on the apps icon (bottom left corner)
  2. Search on search-bar Passwords and Keys
  3. Click on it
  4. Right-click on the key you wish to remove under Login tab and press Delete

Source: https://askubuntu.com/a/1043437/1171332