Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pssh/clients/native/single.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(self, host,
self._keepalive_greenlet = None
self._proxy_client = None
self.host = host
self.port = port
self.port = port if port is not None else 22
if proxy_host is not None:
_port = port if proxy_port is None else proxy_port
_pkey = pkey if proxy_pkey is None else proxy_pkey
Expand Down Expand Up @@ -140,6 +140,7 @@ def _connect_proxy(self, proxy_host, proxy_port, proxy_pkey,
forward_ssh_agent=False,
keepalive_seconds=60,
identity_auth=True):
assert isinstance(self.port, int)
try:
self._proxy_client = SSHClient(
proxy_host, port=proxy_port, pkey=proxy_pkey,
Expand Down