xpra icon
Bug tracker and wiki

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

Opened 3 years ago

Closed 3 years ago

Last modified 17 months ago

#2437 closed defect (fixed)

Error at startup if non-default port in .ssh/config

Reported by: kilobug Owned by: Antoine Martin
Priority: minor Milestone: 4.0
Component: client Version: 3.0.x
Keywords: Cc:


When trying to connect an xpra server using the ssh protocol with ssh://myhost/100 (or any alternative syntax), if there is a non-default port regarding that host in the user's .ssh/config, like with :

Host myhost
Port 42

Then the xpra attach command fails with :

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/xpra/scripts/main.py", line 1012, in connect_or_fail
    return connect_to(display_desc, opts)
  File "/usr/lib/python3/dist-packages/xpra/scripts/main.py", line 1097, in connect_to
    return ssh_paramiko_connect_to(display_desc)
  File "/usr/lib/python3/dist-packages/xpra/net/ssh.py", line 336, in ssh_paramiko_connect_to
    conn.target = host_target_string("ssh", username, host, port, display)
  File "/usr/lib/python3/dist-packages/xpra/scripts/main.py", line 1083, in host_target_string
    target += ":%i" % port
TypeError: %i format: a number is required, not str

Tested with the Debian package from xpra.org version 3.0-r24070-1 .

Change History (3)

comment:1 Changed 3 years ago by kilobug

Component: androidclient
Priority: majorminor

comment:2 Changed 3 years ago by Antoine Martin

Resolution: fixed
Status: newclosed

Thanks for reporting this, fixed in r24071.

comment:3 Changed 17 months ago by migration script

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

Note: See TracTickets for help on using tickets.