Here’s the procedure:
1) Create the .ssh directory:
From your user directory, run:
mkdir .ssh
2) Generate the ssh key:
ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa -C "Your comment here"
3) Change the permissions of the generated files:
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
4) Copy the public key from ~/.ssh/id_rsa.pub to the server.
If you are using Bitbucket, click on “Manage account”, then “Ssh key”; if you are using Github, click on “Settings”, then “Ssh and Gpg keys”.
Paste your key and save.
Now you will be able to use Git with your ssh key.
Copyright © 2013 Welcome to the website of Davis Fiore. All Rights Reserved.