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)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/592434/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to