Skip to content

Instantly share code, notes, and snippets.

@ibqn
Created April 7, 2020 12:24
Show Gist options
  • Save ibqn/7c1603efd38b684eb958d985e3d4e7a9 to your computer and use it in GitHub Desktop.
Save ibqn/7c1603efd38b684eb958d985e3d4e7a9 to your computer and use it in GitHub Desktop.

In your ~/.ssh/config (if this file doesn't exist, just create it):

Host *.bitbucket.org 
    StrictHostKeyChecking no

This will turn it off for all hosts you connect to. You can replace the * with a hostname pattern if you only want it to apply to some hosts.

Make sure the permissions on the file restrict access to yourself only:

sudo chmod 400 ~/.ssh/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment