Xpra: Ticket #1646: ssh client integration via paramiko

Rather than calling putty plink or ssh, we could rely on paramiko which would give us tighter integration with the ssh authentication, allowing us to do things like:


This may help with #1421: Xpra-Launcher closes silently after clicking connect - missing feedback until application shows up

Wed, 28 Mar 2018 06:28:23 GMT - Antoine Martin: status, description changed

Mon, 07 May 2018 05:38:34 GMT - Antoine Martin: milestone changed

see also ssh plink fix: r19411

Mon, 16 Jul 2018 10:20:36 GMT - Antoine Martin:

Initial support for paramiko ssh added in r19933. It works pretty well and allows us to see meaningful debug messages with -d ssh. It doesn't ask for password or key passphrases yet and it isn't the default (requires --ssh=paramiko), but individual authentication mechanisms can be turned off for testing, ie:

XPRA_SSH_AGENT_AUTH=0 xpra attach ssh://username:password@ -d ssh --ssh=ssh

Still TODO:

Tue, 17 Jul 2018 09:10:18 GMT - Antoine Martin:

See ticket:1892#comment:13 : we should aim to support more login shells than the current ssh / plink solution.

Tue, 17 Jul 2018 21:51:51 GMT - Antoine Martin:


Fri, 20 Jul 2018 08:25:15 GMT - Antoine Martin:


Still TODO:

Sun, 29 Jul 2018 18:01:14 GMT - Antoine Martin:

platform and compatibility woes:

Fri, 03 Aug 2018 13:49:51 GMT - Antoine Martin:

Workaround for installing pynacl on win32:

pacman -S mingw-w64-i686-libsodium
export SODIUM_INSTALL=system
easy_install-3.7 -U -Z pynacl

Applied to setup files in r20009.

Fri, 03 Aug 2018 16:37:03 GMT - Antoine Martin:


Mon, 20 Aug 2018 09:08:39 GMT - Antoine Martin: owner, status, summary changed

Minor updates:

This ticket should solve non-bash login shell issues, see ticket:1892#comment:16. Note: paramiko is not the default on win32 because plink already provides a GUI there, might as well stick to it, for now anyway.

For server SSH support see #1920, follow up ticket: #1937

@maxmylyn: we now provide a much better UI for SSH connections on macos and Linux (use --ssh="ssh -x" to revert to running openssh in a subprocess), the same UI can be enabled on win32 with --ssh=paramiko.

Fri, 24 Aug 2018 22:41:35 GMT - J. Max Mena: status changed; resolution set

Played around with this for a while today as well and everything seems to be behaving nicely - checked with both Fedora and MacOS.

Noted and closing.

Tue, 23 Apr 2019 01:45:37 GMT - Antoine Martin:

See also: #1937, #2097, #2448, #2549

Sat, 23 Jan 2021 05:29:59 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1646