diff options
-rw-r--r-- | plugins/gconfterminal.py.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/gconfterminal.py.in b/plugins/gconfterminal.py.in index 4330ac1..2b9938e 100644 --- a/plugins/gconfterminal.py.in +++ b/plugins/gconfterminal.py.in @@ -113,15 +113,15 @@ class plugin_gnometerminal: if stype == "_ssh._tcp": - scheme = "@toolsdir@/exec_wrapper ssh -X" + scheme = "@toolsdir@/exec_wrapper ssh -X -p %d" % (port) else: - scheme = "@toolsdir@/exec_wrapper sftp" + scheme = "@toolsdir@/exec_wrapper sftp -oPort=%d" % (port) if username == None: return elif username != "": - sshline = "%s -p %i %s@%s" % (scheme, port, username, address) + sshline = "%s %s@%s" % (scheme, username, address) else: - sshline = "%s -p %i %s " % (scheme, port, address) + sshline = "%s %s " % (scheme, address) cmdline = terminal.split(" ") cmdline.extend(sshline.split(" ")) |