GNOME Bugzilla – Bug 550929
nautilus sftp:// doesn't read User in ~/.ssh/config
Last modified: 2009-03-02 12:17:06 UTC
Please describe the problem: Hi! I use a lot the sftp://something function in nautilus. Apparently nautilus reads the file ~/.ssh/config which is good. But in my case I'm using a ssh key pair to connect to my desktop computers from my laptop. Nautilus doesn't read all parameters, more concretely nautilus seems to ignore the parameter "User". Let's give an example ~/.ssh/config: Host desktop User murdok HostName 192.168.7.28 --eof-- If I type sftp://murdok@desktop it works perfectly. Instead, if I type sftp://desktop (as if I did $ sftp desktop in a console), a popup windows asks me for the user/password. It's not the expected behaviour and it's becoming a bit annoying for me. Thanks to the developers! If more information is need or I didn't explain it well, just ask me. Steps to reproduce: 1. Do all the steps to create a ssh connection with key pairs 2. Edit ~/.ssh/config to use a default User with a Host 3. In the nautilus bar, type sftp://yourhost Actual results: Nautilus asks you for the user and password Expected results: Connect without asking because authentication is with ssh key pair. Does this happen every time? Yes Other information: I have not found the piece of code exactly where is happens, maybe the bug is in another library that nautilus uses. Anyways I think the bug is in nautilus that ignores de "User foo" line
From: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/264803
Good catch. Confirming, reassigning to GVFS.
Created attachment 118090 [details] [review] Proposed patch
I'm pleased that you understood the problem :P but I'm also really impressed by the quick response and patch!! :D
Hello! Could any developer please apply the patch to the trunk? Thanks.
Patch looks good to me. Alex, can we get this committed ?
Looks good. commited.