wuttamess.ssh

SSH Utilities

wuttamess.ssh.cache_host_key(c, host, port=None, user=None)[source]

Cache the SSH host key for the given host, for the given user.

Parameters:
  • c – Fabric connection.

  • host

    Name or IP of the host whose key should be cached.

    Note that you can specify a username along with the hostname if needed, e.g. any of these works:

    • 1.2.3.4

    • foo@1.2.3.4

    • example.com

    • foo@example.com

  • port – Optional SSH port for the host; default is 22.

  • user – User on the fabric target whose SSH key cache should be updated to include the given host.