Ubuntu

SSHFS doesn't honor ForwardX11 settings in ~/.ssh/config

Reported by Brian Pitts on 2007-02-06
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sshfs-fuse (Ubuntu)
Wishlist
Unassigned

Bug Description

SSHFS doesn't honor ForwardX11 settings in ~/.ssh/config. This is a problem when using ControlMaster. If the initial connection didn't enable X forwarding, no subsequent connections will be able to use it.

If I have the following host configuration.

Host mybox
        Hostname mybox.ahost.com
        User brian
        ForwardX11 yes
        ForwardX11Trusted yes

Host *
        ControlMaster auto
        ControlPath ~/.ssh/socket-%r@%h:%p

And establish my first ssh connection to mybox with

sshfs mybox:/home/brian /media/mybox

This mounts the folder over ssh and creates ~/.<email address hidden>:22

All subsequent ssh connections to mybox will reuse the existing connection. If try to launch an application that requires X

ssh -f mybox mozilla-thunderbird

it will fail, in this case with the error Gtk-WARNING **: cannot open display:

The workaround is to either disable ControlMaster for certain hosts or establish a normal ssh connection before using sshfs.

Áron Sisak (asisak) on 2007-02-06
Changed in sshfs-fuse:
importance: Undecided → Wishlist
Connor Imes (rocket2dmn) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in sshfs-fuse:
status: New → Incomplete
Brian Pitts (bpitts) wrote :

This is still an issue in 8.10

Connor Imes (rocket2dmn) wrote :

Thank you for your response, I was finally able to reproduce this as well, though I see a little different. I think the specific error output just depends on the remote host. My remote server is running Solaris:

emacs: Cannot connect to X server c-<my ip>.hsd1.pa.comcast.net:0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.

Changed in sshfs-fuse:
status: Incomplete → Confirmed

This bug report has been forwarded to the developer at as described at http://fuse.sourceforge.net/sshfs.html

Changed in sshfs-fuse (Ubuntu):
status: Confirmed → Triaged
Ken Sharp (kennybobs) wrote :

Well this still occurs in 12.04.3.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers