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 639599 - client ssh configuration breaks nautilus sftp connection
client ssh configuration breaks nautilus sftp connection
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: sftp backend
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2011-01-15 14:08 UTC by wincus
Modified: 2013-11-15 15:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sftp: Add "PermitLocalCommand no" to the OpenSSH commandline (1.12 KB, patch)
2013-11-14 14:52 UTC, Ross Lagerwall
accepted-commit_now Details | Review

Description wincus 2011-01-15 14:08:12 UTC
I use screen in my everyday work. As I want the screen title to dynamically show the host I've sshed to I have added this lines to my ssh config file:

Host *
        LocalCommand echo -ne '\ek%n\e\\'

Unfortunately since I've made that change nautilus is not able to access any sftp site. I guess nautilus is confused by the localcommand configuration.

I would expect Nautilus to ignore that kind of setting as they are intended to terminals only.

see https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/696919
Comment 1 Ross Lagerwall 2013-11-14 14:52:57 UTC
Created attachment 259808 [details] [review]
sftp: Add "PermitLocalCommand no" to the OpenSSH commandline

Add "PermitLocalCommand no" to the OpenSSH commandline to prevent
user-configured commands running and interfering with the sftp session.
This is what the OpenSSH sftp client does.
Comment 2 Ondrej Holy 2013-11-15 12:22:41 UTC
Review of attachment 259808 [details] [review]:

Looks good!
Comment 3 Ross Lagerwall 2013-11-15 15:01:01 UTC
Pushed to master as 100dbd9a53efc0dd18a6e0f9dc7083ed584ffbee. Thanks!