-
-
Notifications
You must be signed in to change notification settings - Fork 222
Description
Issue migrated from trac ticket # 203
component: core | priority: minor | resolution: fixed
2012-11-02 23:48:22: onlyjob created the issue
Please don't kill SSH when detaching on Ctrl+C signal.
SSH have a powerful feature to reuse existing connections.
For example if ~/.ssh/config have the following:host * controlmaster auto controlpath ~/.ssh/__tmp-ssh-%r@%h:%pthen SSH will create a socket file for first connection to remote host and subsequent connections will reuse the existing connection through the sock file.
When you log off from first "master" session, SSH will not exit until all other connections are closed.
If you terminate "master" SSH process then all other connections to the same host will be terminated as well.In Xpra when I attach to remote session without any prior ssh connections to the remote host a "master" connection is created.
If later I have other SSH connections to the same host they are reusing "master" SSH connection initiated by Xpra.The problem is that all SSH connections are terminated if I detach from "master" session by sending "Control-C" to Xpra client because it kills master SSH connection.
This do not happen when I detach using "Disconnect" from Xpra client menu.