missing_host_key(self,
client,
hostname,
key)
| source code
|
Handle a missing host key situation. This method calls
Once called, the missing_host_key method will try to call X2GoSession.HOOK_check_host_dialog(). This hook
method---if not re-defined in your application---will then try to call
the X2GoClient.HOOK_check_host_dialog(), which then will
return True by default if not customized in your
application.
To accept host key checks, make sure to either customize the X2GoClient.HOOK_check_host_dialog() method or the X2GoSession.HOOK_check_host_dialog() method and hook
some interactive user dialog to either of them.
- Parameters:
client (X2GoControlSession* instance) - SSH client (X2GoControlSession* ) instance
hostname (str ) - remote hostname
key (Paramiko/SSH key instance) - host key to validate
- Raises:
X2GoHostKeyException - if the X2Go server host key is not in the known_hosts
file
X2GoSSHProxyHostKeyException - if the SSH proxy host key is not in the known_hosts
file
SSHException - if this instance does not know its {self.session_instance}
- Overrides:
paramiko.client.MissingHostKeyPolicy.missing_host_key
|