Comment 13 for bug 592434

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

This is really a dbus issue, not a SSH issue:
see http://serverfault.com/questions/405518/how-to-configure-d-bus-and-ssh-x-forwarding-to-prevent-ssh-from-hanging-on-exit

Gedit for whatever reason is looking for an active dbus-session and running `dbus-launch --autostart' if none was found. But `dbus-launch --autostart' doesn't watch the user session and therefore ssh hangs while waiting dbus-launch to quit.

A workaround is to run 'dbus-launch --exit-with-session' when you first connect over SSH. (This unfortunately causes yet another issue: https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/812913)