ssh_check_known_hosts(ssh,
address,
port,
username=None,
logger=None)
| source code
|
Validation routine for loading the host keys and making sure that they
are configured properly for the desired SSH. The behavior of this routine
can be modified by the ROSLAUNCH_SSH_UNKNOWN environment variable, which
enables the paramiko.AutoAddPolicy.
- Parameters:
ssh (paramiko.SSHClient ) - paramiko SSH client
address (str) - SSH IP address
port (int) - SSH port
username (str) - optional username to include in error message if check fails
logger (logging.Logger) - (optional) logger to record tracebacks to
- Returns: str
- error message if improperly configured, or None
|