Skip to content

Commit

Permalink
Merge pull request #86 from gjklein/master
Browse files Browse the repository at this point in the history
Fix issue #85: PuttyMachine fails with non-default port.
  • Loading branch information
tomerfiliba committed Aug 24, 2013
2 parents 09489c8 + 61395d0 commit 47b9222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plumbum/machines/ssh_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self, host, user = None, port = None, keyfile = None, ssh_command =
else:
self._fqhost = host
if port:
ssh_args.extend(["-p", str(port)])
ssh_args.extend(["-P" if 'plink.exe' in str(ssh_command) else "-p", str(port)])
scp_args.extend(["-P", str(port)])
if keyfile:
ssh_args.extend(["-i", str(keyfile)])
Expand Down

0 comments on commit 47b9222

Please sign in to comment.