Package paramiko :: Class Transport
[show private | hide private]
[frames | no frames]

Class Transport

object --+                
         |                
  _Verbose --+            
             |            
        Thread --+        
                 |        
     BaseTransport --+    
                     |    
             Transport --+
                         |
                        Transport


An SSH Transport attaches to a stream (usually a socket), negotiates an encrypted session, authenticates, and then creates stream tunnels, called Channels, across the session. Multiple channels can be multiplexed across a single session (and often are, in the case of port forwardings).
Method Summary
    Inherited from Transport
  __init__(self, sock)
Create a new SSH session over an existing socket, or socket-like object.
string __repr__(self)
Returns a string representation of this object, for debugging.
  auth_password(self, username, password, event)
Authenticate to the server using a password.
  auth_publickey(self, username, key, event)
Authenticate to the server using a private key.
int check_auth_none(self, username)
(subclass override) Determine if a client may open channels with no (further) authentication.
int check_auth_password(self, username, password)
(subclass override) Determine if a given username and password supplied by the client is acceptable for use in authentication.
int check_auth_publickey(self, username, key)
(subclass override) Determine if a given key supplied by the client is acceptable for use in authentication.
string get_allowed_auths(self, username)
(subclass override) Return a list of authentication methods supported by the server.
  is_authenticated(self)
Return true if this session is active and authenticated.
    Inherited from BaseTransport
  accept(self, timeout)
  add_server_key(self, key)
Add a host key to the list of keys used for server mode.
Channel check_channel_request(self, kind, chanid)
(subclass override) Determine if a channel request of a given type will be granted, and return a suitable Channel object.
  close(self)
Close this session, and any open channels that are tied to it.
  connect(self, hostkeytype, hostkey, username, password, pkey)
Negotiate an SSH2 session, and optionally verify the server's host key and authenticate using a password or private key.
(string, string) get_remote_server_key(self)
Return the host key of the server (in client mode).
PKey get_server_key(self)
Return the active host key, in server mode.
boolean is_active(self)
Return true if this session is active (open).
boolean load_server_moduli(filename)
(optional) Load a file of prime moduli for use in doing group-exchange key negotiation in server mode. (Static method)
Channel open_channel(self, kind)
Request a new channel to the server.
Channel open_session(self)
Request a new channel to the server, of type "session".
boolean renegotiate_keys(self)
Force this session to switch to new keys.
  start_client(self, event)
Negotiate a new SSH2 session as a client.
  start_server(self, event)
Negotiate a new SSH2 session as a server.
    Inherited from Thread
  getName(self)
  isAlive(self)
  isDaemon(self)
  join(self, timeout)
  run(self)
  setDaemon(self, daemonic)
  setName(self, name)
  start(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Class Variable Summary
    Inherited from Transport
int AUTH_FAILED = 2                                                                     
int AUTH_PARTIALLY_SUCCESSFUL = 1                                                                     
int AUTH_SUCCESSFUL = 0                                                                     
    Inherited from BaseTransport
int OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED = 1                                                                     
int OPEN_FAILED_CONNECT_FAILED = 2                                                                     
int OPEN_FAILED_RESOURCE_SHORTAGE = 4                                                                     
int OPEN_FAILED_UNKNOWN_CHANNEL_TYPE = 3                                                                     
list preferred_ciphers = ['aes128-cbc', 'blowfish-cbc', 'aes2...
list preferred_kex = ['diffie-hellman-group1-sha1', 'diffie-h...
list preferred_keys = ['ssh-rsa', 'ssh-dss']
list preferred_macs = ['hmac-sha1', 'hmac-md5', 'hmac-sha1-96...
int REKEY_BYTES = 1073741824                                                            
int REKEY_PACKETS = 1073741824                                                            

Generated by Epydoc 2.0 on Sat Jan 3 19:12:47 2004 http://epydoc.sf.net