summaryrefslogtreecommitdiff
path: root/pexpect
diff options
context:
space:
mode:
authorRed_M <pooatyou.com@gmail.com>2018-06-10 00:23:49 +1000
committerRed_M <pooatyou.com@gmail.com>2018-06-10 00:23:49 +1000
commit6118f8af2ed0b0b7e3baf9c813324be926241a4a (patch)
tree87d666c50d7d52bc053658f9c47c8a49319c7a97 /pexpect
parent8b51c3db77ff9f3a393327c84134129944ac0709 (diff)
downloadpexpect-6118f8af2ed0b0b7e3baf9c813324be926241a4a.tar.gz
Bug fix as per #498.
Diffstat (limited to 'pexpect')
-rw-r--r--pexpect/pxssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py
index ef2e911..f230e04 100644
--- a/pexpect/pxssh.py
+++ b/pexpect/pxssh.py
@@ -320,7 +320,7 @@ class pxssh (spawn):
if ssh_config is not None:
if spawn_local_ssh and not os.path.isfile(ssh_config):
raise ExceptionPxssh('SSH config does not exist or is not a file.')
- ssh_options = ssh_options + '-F ' + ssh_config
+ ssh_options = ssh_options + ' -F ' + ssh_config
if port is not None:
ssh_options = ssh_options + ' -p %s'%(str(port))
if ssh_key is not None: