Skip to content

Commit

Permalink
#3692 ssh config overrides url
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 25, 2022
1 parent 5563b3c commit 3280205
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions xpra/net/ssh/paramiko_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,12 @@ def ssh_lookup(key):
if host_config:
log(f"got host config for {host!r}: {host_config}")
host = host_config.get("hostname", host)
if "username" not in display_desc:
username = host_config.get("user", username)
if "port" not in display_desc:
port = host_config.get("port", port)
try:
port = int(port)
except (TypeError, ValueError):
raise InitExit(EXIT_SSH_FAILURE, f"invalid ssh port specified: {port!r}") from None
username = host_config.get("user", username)
port = host_config.get("port", port)
try:
port = int(port)
except (TypeError, ValueError):
raise InitExit(EXIT_SSH_FAILURE, f"invalid ssh port specified: {port!r}") from None
proxycommand = host_config.get("proxycommand")
if proxycommand:
log(f"found proxycommand={proxycommand!r} for host {host!r}")
Expand Down

0 comments on commit 3280205

Please sign in to comment.