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)
This is really a dbus issue, not a SSH issue: serverfault. com/questions/ 405518/ how-to- configure- d-bus-and- ssh-x-forwardin g-to-prevent- ssh-from- hanging- on-exit
see http://
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)