xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 4 years ago

Closed 4 years ago

Last modified 16 months ago

#1915 closed defect (invalid)

xpra tries to login to SSH without a password and hang

Reported by: Antonello Lobianco Owned by: Antonello Lobianco
Priority: major Milestone: 2.4
Component: client Version: 2.3.x
Keywords: Cc:

Description (last modified by Antoine Martin)

xpra v2.3.2-r19729 on Ubuntu 16.04 (both client and server)

Hello, when I run xpra start or xpra attach, e.g.:

xpra start --ssh="ssh -p 54100" ssh:lobianco@MYSERVER --start=xterm
xpra attach --ssh="ssh -p 54100" ssh:lobianco@MYSERVER

(54100 is my non-default SSH port on the server)

xpra try to login to the server without the password:

lobianco@MYSERVER's password: 2018-07-11 10:43:34,370  desktop size is 2960x1050 with 1 screen:

Obviously it doesn't work, but it even doesn't report me any error, it just hangs.. then if I press ENTER on the client console it gives me the error:

Permission denied, please try again.
lobianco@MYSERVER's password:

And from there I can login normally.

Change History (3)

comment:1 Changed 4 years ago by Antoine Martin

Description: modified (diff)
Milestone: 2.4
Owner: changed from Antoine Martin to Antonello Lobianco

I don't think this is what is happening here.
The ssh process is prompting you for the password, but the GUI is also printing the desktop size to stdout at the same time.
If you enter your password at that point instead of hitting enter, it will work.

It's not pretty, but that's a limitation of sharing the tty with another process.
The solution for this is #1646. In the meantime, you can also specify the ssh password on the command line (ie: xpra attach ssh://username:password@host) or use ssh keys.

comment:2 Changed 4 years ago by Antonello Lobianco

Resolution: invalid
Status: newclosed

Thank you, setting this as invalid and closing it..

comment:3 Changed 16 months ago by migration script

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

Note: See TracTickets for help on using tickets.