OpenSSH supports configuration options, both in its config file and using the command line. We should provide a similar way of setting options:
Done in r25103.
Self-explanatory examples (add
--debug=ssh for debugging):
xpra attach ssh://localhost/ --ssh=paramiko:verify-hostkey=no,auth=none+password
xpra attach ssh://localhost/ --ssh=paramiko:verify-hostkey=yes,verifyhostkeydns=yes,auth=agent+key
xpra attach ssh://localhost/ --ssh=paramiko:verifyhostkeydns=no,auth=password,numberofpasswordprompts=5
Let's also make it possible to specify the keyfile to use.
As of r25180, we can also specify paramiko attributes on the URI, including the key:
XPRA_SSH_DEFAULT_KEYFILES="" xpra attach "ssh://localhost/?key=$HOME/.ssh/id_rsa&auth=key"
The same options can still be specified as a general paramiko attribute:
XPRA_SSH_DEFAULT_KEYFILES="" xpra attach "ssh://localhost/" --ssh="paramiko:key=/home/antoine/.ssh/id_rsa,auth=key"
XPRA_SSH_DEFAULT_KEYFILES env var is used in these examples to disable the default ssh key locations.
Important: the old URI format
ssh:host/DISPLAY is no longer supported. Parsing such strings was becoming increasingly unwieldy.
See also #2582.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2567