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.
:param ssh: paramiko SSH client, :class:`paramiko.SSHClient` :param
address: SSH IP address, ``str`` :param port: SSH port, ``int`` :param
username: optional username to include in error message if check fails,
``str`` :param logger: (optional) logger to record tracebacks to,
:class:`logging.Logger` :returns: error message if improperly configured,
or ``None``. ``str``
|