From e8c9e96a8dbf5e6977907c9db239473be302322c Mon Sep 17 00:00:00 2001 From: Cory Schwartz Date: Sat, 3 Feb 2018 10:21:37 -0800 Subject: [PATCH] Don't add port 22 to default Specifying the port seems unnecessary since the ssh commandline tool will use the correct port if specified. Specifying it here can also cause problems if the host is an SSH alias where the port is already defined. I'm using webvirtmgr this way to manage hypervisors accessed through an SSH tunnel. --- console/webvirtmgr-console | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/webvirtmgr-console b/console/webvirtmgr-console index 28400859..93a2ddf8 100755 --- a/console/webvirtmgr-console +++ b/console/webvirtmgr-console @@ -127,7 +127,7 @@ def get_connection_infos(token): connport = instance.compute.hostname.split(':')[1] else: connhost = instance.compute.hostname - connport = 22 + connport = None connuser = instance.compute.login conntype = instance.compute.type console_host = conn.get_console_listen_addr()