ssh github

At command line:

ssh-keygen

cd .ssh

vi id_rsa.pub

copy contents of id_rsa.pub

close file

go to GitHub settings

SSH and GPG keys

click New SSH key

give it a name and paste the contents of id_rsa.pub

go to GitHub clone or download; choose ssh and copy link

At command line:

ssh-add .ssh/id_rsa

git remote set-url origin (paste link)

git remote -v  (to confirm)

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s