Package x2go :: Module checkhosts :: Class X2GoMissingHostKeyPolicy
[frames] | no frames]

type X2GoMissingHostKeyPolicy

source code

                          object --+    
                                   |    
paramiko.client.MissingHostKeyPolicy --+
                                       |
                                      X2GoMissingHostKeyPolicy
Known Subclasses:

Skeleton class for Python X2Go's missing host key policies.

Instance Methods
 
__init__(self, caller=None, session_instance=None, fake_hostname=None) source code
X2GoControlSession* instance
get_client(self)
Retrieve the Paramiko SSH/Client.
source code
str
get_hostname(self)
Retrieve the server hostname:port expression of the server to be validated.
source code
str
get_hostname_name(self)
Retrieve the server hostname string of the server to be validated.
source code
str
get_hostname_port(self)
Retrieve the server port of the server to be validated.
source code
Paramiko/SSH key instance
get_key(self)
Retrieve the host key of the server to be validated.
source code
str
get_key_name(self)
Retrieve the host key name of the server to be validated.
source code
str
get_key_fingerprint(self)
Retrieve the host key fingerprint of the server to be validated.
source code
str
get_key_fingerprint_with_colons(self)
Retrieve the (colonized) host key fingerprint of the server to be validated.
source code

Inherited from paramiko.client.MissingHostKeyPolicy: missing_host_key

Method Details

__init__(self, caller=None, session_instance=None, fake_hostname=None)
(Constructor)

source code 
Parameters:
  • caller (class) - calling instance
  • session_instance (X2GoSession instance) - an X2Go session instance
Overrides: object.__init__

get_client(self)

source code 

Retrieve the Paramiko SSH/Client.

Returns: X2GoControlSession* instance
the associated X2Go control session instance.

get_hostname(self)

source code 

Retrieve the server hostname:port expression of the server to be validated.

Returns: str
hostname:port

get_hostname_name(self)

source code 

Retrieve the server hostname string of the server to be validated.

Returns: str
hostname

get_hostname_port(self)

source code 

Retrieve the server port of the server to be validated.

Returns: str
port

get_key(self)

source code 

Retrieve the host key of the server to be validated.

Returns: Paramiko/SSH key instance
host key

get_key_name(self)

source code 

Retrieve the host key name of the server to be validated.

Returns: str
host key name (RSA, DSA, ECDSA...)

get_key_fingerprint(self)

source code 

Retrieve the host key fingerprint of the server to be validated.

Returns: str
host key fingerprint

get_key_fingerprint_with_colons(self)

source code 

Retrieve the (colonized) host key fingerprint of the server to be validated.

Returns: str
host key fingerprint (with colons)