Skip to content

Instantly share code, notes, and snippets.

@bitsandbytes
Last active August 23, 2017 20:13
Show Gist options
  • Save bitsandbytes/a94319c7f54596879e5f49cdae2c7ef1 to your computer and use it in GitHub Desktop.
Save bitsandbytes/a94319c7f54596879e5f49cdae2c7ef1 to your computer and use it in GitHub Desktop.
# When you get this: "The authenticity of host 'HOSTNAME (IP)' can't be established.",
# including a fingerprint, and then "Are you sure you want to continue connecting (yes/no)?".
# This is due to a hostname check previously accepted fingerprint/hostname.
# This isn't helpful during automated tests, turn it off with this:
StrictHostKeyChecking=no
# get fingerprint of server
ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
# The following useful in /etc/ssh/ssh_config
Host *
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
LogLevel ERROR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment