Xpra: Ticket #1407: --ssh not working with new releases

Hi,

I use "--ssh" which used to work perfectly in old releases e.g. This is working fine:

D:\Xpra\0.17.4\xpra.exe  attach ssh:SERVER123:100 --ssh="plink -4 -i '%USERPROFILE%\.ssh\viz.ppk' %USERNAME%@SERVER123"

While this is not:

D:\Xpra\1.0.1-r14710\xpra.exe  attach ssh:SERVER123:100 --ssh="plink -4 -i '%USERPROFILE%\.ssh\viz.ppk' %USERNAME%@SERVER123"

Nothing happens in the second case .. plink starts quickly then disappears. I captured the argument in both cases using wmic: 0.17.4 (working):

plink -4 -i D:\Users\USERNAME\.ssh\viz.ppk USERNAME@SERVER123 -T SERVER123 "xpra initenv;~/.xpra/run-xpra _proxy :100 || $XDG_RUNTIME_DIR/xpra/run-xpra _proxy :100 || xpra _proxy :100",3464

1.0.1-r14710 (not working)

plink -4 -i D:\Users\USERNAME\.ssh\viz.ppk USERNAME@SERVER123 -T SERVER123 "xpra initenv || echo \"Warning: xpra server does not support initenv\" 1>&2;~/.xpra/run-xpra _proxy :100",9784

Server is running on RHEL 6.6 (xpra v0.15.5)

Thank you,



Thu, 12 Jan 2017 11:19:40 GMT - adarrab: attachment set

xpra v1.0.1-r14723 debug on RHEL 6.6


Thu, 12 Jan 2017 11:23:35 GMT - adarrab:

I tried to use the latest server xpra v1.0.1-r14723, but it fails on RHEL 6.6. debug log is attached.

Thank you,


Thu, 12 Jan 2017 11:29:34 GMT - Antoine Martin: owner, description changed

Your server log shows a bug which has already been fixed in 1.0.1-r14734, please update your server first.

Please also specify which type of shell is set for your user.

Your command output looks wrong too, it doesn't match the version you claim to have used: the string "Warning: xpra server does not support initenv" has been removed from the client source code for almost a year. It is not present in 1.0

Does it make any difference if you use password authentication instead of the public key? (it would make it easier for me to reproduce the same settings)


Thu, 12 Jan 2017 12:35:47 GMT - adarrab:

Thank you Antoine,

Confirmed, 1.0.1-r14734 is working on my server. Though the client with -ssh still doesn't work (windows7 1.0.1-r14723)

The default shell is csh. Login doesn't produce any std out/err (no unusual sources or changes in paths)

This is now the plink command I'm capturing with wmic

plink -4 -i D:\Users\USERNAME\.ssh\viz.ppk USERNAME@SERVER123 -T SERVER123 "sh -c 'xpra initenv;~/.xpra/run-xpra _proxy :100 || $XDG_RUNTIME_DIR/xpra/run-xpra _proxy :100 || xpra _proxy :100'",12580

As for authentication, -pw is fine for debugging, which doesn't work either for me for r14723, while works fine with 0.17.4. So, doesn't make any difference.

Best regards,


Thu, 12 Jan 2017 12:50:06 GMT - Antoine Martin:

Does it help if you add "--remote-xpra=~/.xpra/run-xpra" to your client command line? It could be related to csh, can you try temporarily switching to bash as login shell?


Thu, 12 Jan 2017 13:11:11 GMT - adarrab:

Replying to Antoine Martin:

Does it help if you add "--remote-xpra=~/.xpra/run-xpra" to your client command line? It could be related to csh, can you try temporarily switching to bash as login shell?

Adding --remote-xpra=~/.xpra/run-xpra doesn't help.

Changing to bash, well nothing worked (0.17.4 or 1.0.1-r14723)

I changed to putty plink and even that works fine with client 0.17.4

D:\Xpra\0.17.4\xpra.exe  attach ssh:SERVER02:10 --ssh="D:\\putty\\plink -4 -pw PASSWORD %USERNAME%@SERVER02" --remote-xpra=~/.xpra/run-xpra

This doesn't

D:\Xpra\1.0.1-r14723\xpra.exe  attach ssh:SERVER02:10 --ssh="D:\\putty\\plink -4 -pw PASSWORD %USERNAME%@SERVER02" --remote-xpra=~/.xpra/run-xpra

Fri, 13 Jan 2017 09:24:50 GMT - Antoine Martin: owner, status changed

This is caused by #1000, specifically this changeset: r13622.


Fri, 13 Jan 2017 09:41:22 GMT - Antoine Martin: owner, status changed

Added a putty workaround in r14779, applied to v1.0.x branch in r14780.

There is a beta 1.0.2 build for windows with this fix here: http://xpra.org/beta/windows/.

I've also added an environment variable to make it easier to debug putty / ssh command line problems: set XPRA_SSH_DEBUG=1 to print the exact ssh command line used for connecting to the server. (applied to all branches)

@adarrab: please close if this works for you.


Fri, 13 Jan 2017 12:37:56 GMT - adarrab: status changed; resolution set

Confirmed! it is working in 1.0.2-r14780 many thanks,


Sat, 23 Jan 2021 05:23:27 GMT - migration script:

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