Home | Trees | Index | Help |
---|
Package paramiko :: Module auth_transport :: Class Transport |
|
object
--+ |_Verbose
--+ |Thread
--+ |BaseTransport
--+ | Transport
Channel
s, across the session. Multiple
channels can be multiplexed across a single session (and often are, in
the case of port forwardings).
Method Summary | |
---|---|
Create a new SSH session over an existing socket, or socket-like object. | |
str |
Returns a string representation of this object, for debugging. |
list |
Authenticate to the server using a password. |
list |
Authenticate to the server using a private key. |
string |
Return the username this connection is authenticated for. |
bool |
Return true if this session is active and authenticated. |
Inherited from BaseTransport | |
| |
Channel
|
Return the next channel opened by the client over this transport, in server mode. |
Add a host key to the list of keys used for server mode. | |
Close this session, and any open channels that are tied to it. | |
Negotiate an SSH2 session, and optionally verify the server's host key and authenticate using a password or private key. | |
Exception |
Return any exception that happened during the last server request. |
bool |
Return True if the transport is currently logging hex
dumps of protocol traffic. |
str |
Return the channel name used for this transport's logging. |
PKey
|
Return the host key of the server (in client mode). |
SecurityOptions
|
Return a SecurityOptions object which can be used to
tweak the encryption algorithms this transport will permit, and the order
of preference for them. |
PKey
|
Return the active host key, in server mode. |
Message
|
Make a global request to the remote host. |
bool |
Return true if this session is active (open). |
bool |
(optional) Load a file of prime moduli for use in doing group-exchange key negotiation in server mode. (Static method) |
Channel
|
Request a new channel to the server. |
Channel
|
Request a new channel to the server, of type "session" . |
SFTPClient
|
Create an SFTP client channel from an open transport. |
bool |
Force this session to switch to new keys. |
| |
Send a junk packet across the encrypted link. | |
Turn on/off logging a hex dump of protocol traffic at DEBUG level in the logs. | |
Turn on/off keepalive packets (default is off). | |
Set the channel for this transport's logging. | |
Set the handler class for a subsystem in server mode. | |
Negotiate a new SSH2 session as a client. | |
Negotiate a new SSH2 session as a server. | |
| |
Inherited from Thread | |
| |
| |
| |
| |
| |
| |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Instance Method Details |
---|
__init__(self,
sock)
|
__repr__(self)
Returns a string representation of this object, for debugging.
|
auth_password(self, username, password, event=None)Authenticate to the server using a password. The username and password are sent over an encrypted link. If an Since 1.1, if no event is passed, this method will block until the authentication succeeds or fails. On failure, an exception is raised. Otherwise, the method simply returns. If the server requires multi-step authentication (which is very rare), this method will return a list of auth types permissible for the next step. Otherwise, in the normal case, an empty list is returned.
|
auth_publickey(self, username, key, event=None)Authenticate to the server using a private key. The key is used to sign data from the server, so it must include the private part. If an Since 1.1, if no event is passed, this method will block until the authentication succeeds or fails. On failure, an exception is raised. Otherwise, the method simply returns. If the server requires multi-step authentication (which is very rare), this method will return a list of auth types permissible for the next step. Otherwise, in the normal case, an empty list is returned.
|
get_username(self)Return the username this connection is authenticated for. If the session is not authenticated (or authentication failed), this method returnsNone .
|
is_authenticated(self)Return true if this session is active and authenticated.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Jul 17 23:44:29 2005 | http://epydoc.sf.net |