check_ssh_host_key(x2go_sshclient_instance,
hostname,
port=22)
| source code
|
Perform a Paramiko/SSH host key check by connecting to the host and
validating the results (i.e. by validating raised exceptions during the
connect process).
- Parameters:
x2go_sshclient_instance (X2goControlSession* instance) - a Paramiko/SSH client instance to be used for testing host key
validity.
hostname (str ) - hostname of server to validate
port (int ) - port of server to validate
- Returns:
tuple
- returns a tuple with the following components (<host_ok>,
<hostname>, <port>, <fingerprint>,
<fingerprint_type>)
|