xpra icon
Bug tracker and wiki

Opened 9 days ago

Closed 9 days 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:

Description

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 (2)

comment:1 Changed 9 days ago by kilobug

Component: androidclient
Priority: majorminor

comment:2 Changed 9 days ago by Antoine Martin

Resolution: fixed
Status: newclosed

Thanks for reporting this, fixed in r24071.

Note: See TracTickets for help on using tickets.