Skip to content

Instantly share code, notes, and snippets.

@mortennajbjerg
Last active June 13, 2016 11:12
Show Gist options
  • Save mortennajbjerg/d0f552cfffe656a3fbc5a43372510680 to your computer and use it in GitHub Desktop.
Save mortennajbjerg/d0f552cfffe656a3fbc5a43372510680 to your computer and use it in GitHub Desktop.
# 1. Run key generator on deployment server
ssh-keygen
# 2. Copy the content of id_rsa.pub usin VIM
vim ~/.ssh/id_rsa.pub
# 3. Add the id_rsa.pub to Deployment keys in Bitbucket
# 4. Add Bitbucket to known_hosts on deployment server
ssh-keyscan -t rsa bitbucket.org >> ~/.ssh/known_hosts
# 5. Make sure it has been copied to ~/.ssh/known_hosts
# That's it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment