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. |
_disconnect_no_more_auth(self)
| |
_disconnect_service_not_available(self)
| |
_get_session_blob(self,
key,
service,
username)
| |
_parse_service_accept(self,
m)
| |
_parse_service_request(self,
m)
| |
_parse_userauth_banner(self,
m)
| |
_parse_userauth_failure(self,
m)
| |
_parse_userauth_request(self,
m)
| |
_parse_userauth_success(self,
m)
| |
_request_auth(self)
| |
_wait_for_response(self,
event)
| |
Inherited from BaseTransport | |
| |
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. | |
| |
switch on newly negotiated encryption parameters for inbound traffic | |
switch on newly negotiated encryption parameters for outbound traffic | |
| |
id is 'A' - 'F' for the various keys used by ssh | |
used by a kex object to register the next packet type it expects to see | |
| |
used by KexGex to find primes for group exchange | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
announce to the other side that we'd like to negotiate keys, and what kind of key negotiation we support. | |
| |
send a message, but block if we're in key negotiation. | |
used by a kex object to set the K (root key) and H (exchange hash) | |
used by a Channel to remove itself from the active channel list | |
| |
Inherited from Thread | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from _Verbose | |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Class Variable Summary | |
---|---|
dict |
_handler_table = {5: <function _parse_service_request at...
|
Inherited from BaseTransport | |
dict |
_channel_handler_table = {96: <unbound method Channel._h...
|
dict |
_cipher_info = {'blowfish-cbc': {'block-size': 8, 'key-s...
|
str |
_CLIENT_ID = 'paramiko_1.3.1'
|
dict |
_kex_info = {'diffie-hellman-group1-sha1': <class 'param...
|
dict |
_key_info = {'ssh-dss': <class 'paramiko.dsskey.DSSKey'>...
|
dict |
_mac_info = {'hmac-sha1': {'class': <module 'Crypto.Hash...
|
NoneType |
_modulus_pack = None |
tuple |
_preferred_ciphers = ('aes128-cbc', 'blowfish-cbc', 'aes...
|
tuple |
_preferred_kex = ('diffie-hellman-group1-sha1', 'diffie-...
|
tuple |
_preferred_keys = ('ssh-rsa', 'ssh-dss')
|
tuple |
_preferred_macs = ('hmac-sha1', 'hmac-md5', 'hmac-sha1-9...
|
str |
_PROTO_ID = '2.0'
|
Inherited from Thread | |
bool |
_Thread__initialized = False
|
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.
|
Class Variable Details |
---|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Thu Jun 30 20:46:58 2005 | http://epydoc.sf.net |