Profile cover photo
Profile photo
devel.tech
Tutorial videos and project code for python, javascript, node.js, linux + FreeBSD + OS X and more.
Tutorial videos and project code for python, javascript, node.js, linux + FreeBSD + OS X and more.
About
Posts

Post has attachment
How to create an SSH Key from command line on OS X for GitHub.

Using an SSH Key for git is far more secure than using normal username/password over SSL. It can also save you from having to type your username and password repeatedly whenever you pull or push from a git+ssh repository.

These instructions will work Linux distributions and BSD since they're preinstalled with OpenSSH:

- Open up a terminal
- ssh-keygen
- Follow the instructions. For best security, use a password with your public key.
- Login to GitHub, go to your Settings and click "SSH Keys"
- Add your SSH Keys and give it a title to help remember what machine this key is for
- Go back to terminal and type: cat ~/.ssh/id_rsa.pub
- Copy and paste the output into the key field
- Save your SSH Key by clicking "Add SSH Key"!

For more resources on ssh-keygen, type "man ssh-keygen" in your terminal. You can also checkout manual pages online such as http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/ssh-keygen.1?query=ssh-keygen.
Commenting is disabled for this post.
Wait while more posts are being loaded