mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Allow specifying ssh port (Claes Strom)
This commit is contained in:
@@ -975,7 +975,11 @@ class vmmDetails(gobject.GObject):
|
||||
os.close(1)
|
||||
os.dup(fds[1].fileno())
|
||||
os.dup(fds[1].fileno())
|
||||
argv = ["ssh", "ssh", "-p", "22"]
|
||||
if not server.count(":"):
|
||||
sshport = 22
|
||||
else:
|
||||
(server, sshport) = server.split(":")
|
||||
argv = ["ssh", "ssh", "-p", sshport]
|
||||
if username:
|
||||
argv += ['-l', username]
|
||||
argv += [ server, "nc", vncaddr, str(vncport) ]
|
||||
|
||||
Reference in New Issue
Block a user