xpra icon
Bug tracker and wiki

Opened 3 months ago

Closed 3 months ago

Last modified 10 days ago

#1924 closed defect (invalid)

version 2.4-20180721r19945M-1 no longer uses .ssh/config on Ubuntu Linux 17.10

Reported by: Piskvor Owned by: Antoine Martin
Priority: major Milestone: 2.4
Component: network Version: 2.3.x
Keywords: ssh Cc:

Description (last modified by Antoine Martin)

I have a SSH alias "foo" in .ssh/config, which is actually bar.example.com. this works in anything that uses ssh and also used to work in xpra, up to and including previous version (r19937); now it doesn't work in current xpra version (r19945).

What I did:

xpra attach ssh:foo

What I expected to happen (as seen in previous versions since forever):

Xpra gtk2 client version 2.4-r19937 64-bit
running on Linux Ubuntu 17.10 artful
(...)
Host key fingerprint is SHA256:0deadbeef0
Xpra X11 server version 1.0.1

What happened instead:

Xpra gtk2 client version 2.4-r19945 64-bit
running on Linux Ubuntu 17.10 artful
ssh: Could not resolve hostname foo: Name or service not known
Error: failed to receive anything, not an xpra server?

Relevant ~/.ssh/config section:

Host foo
HostName bar.example.com
Port 12345
User baz

Other tools using ssh are working correctly, previous version works. New version fails to use the SSH config, tries to resolve "foo" as a DNS name (which doesn't work, as the host is not reachable under that name from anywhere).

Change History (3)

comment:1 Changed 3 months ago by Antoine Martin

Description: modified (diff)
Milestone: 2.4
Resolution: invalid
Status: newclosed

This is working as expected, the new native ssh implementation (#1646) knows nothing about openssh's configuration files.
If you want to revert to executing openssh as transport, use:

xpra attach --ssh="ssh -x" ssh:foo

Xpra X11 server version 1.0.1

Yikes! 1.0.1!

comment:2 Changed 3 months ago by Piskvor

Excellent, thank you for the explanation and workaround.

(Yeah, one works with the servers one has, rather than the ones one would like to have)

comment:3 Changed 10 days ago by Antoine Martin

Loading .ssh/config will be supported soon: #1937

Note: See TracTickets for help on using tickets.