How to up git SSH access on a new machine

How to up git SSH access on a new machine

Get your private key from your existing machine. In this example the key name is id_rsa

cat ~/.ssh/id_rsa

Copy the key content, and paste key to new machine on appropriate folder

nano id_rsa

Change key permissions to 400

chmod 400 id_rsa

Start ssh-agent and add identity

eval `ssh-agent -s`
ssh-add id_rsa