add get_transport() to fetch the Transport from an SSHClient.
This commit is contained in:
parent
9bc7c13ad7
commit
645bdfd861
|
@ -349,6 +349,17 @@ class SSHClient (object):
|
|||
"""
|
||||
return self._transport.open_sftp_client()
|
||||
|
||||
def get_transport(self):
|
||||
"""
|
||||
Return the underlying L{Transport} object for this SSH connection.
|
||||
This can be used to perform lower-level tasks, like opening specific
|
||||
kinds of channels.
|
||||
|
||||
@return: the Transport for this connection
|
||||
@rtype: L{Transport}
|
||||
"""
|
||||
return self._transport
|
||||
|
||||
def _auth(self, username, password, pkey, key_filename):
|
||||
"""
|
||||
Try, in order:
|
||||
|
|
Loading…
Reference in New Issue