Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git ssh key linux

#SSH key for github.com
# Linux should not be using sudo commands 

Generate SSH Key:
$ ssh-keygen -t rsa -C "email@example.com"

Add public key to git:
$ cat ~/.ssh/id_rsa.pub
- Copy all ouput
- Open web browser and paste the output on the client settings you use.

Start SSH agent:
$ eval "$(ssh-agent -s)"

Add private key to SSH agent:
$ ssh-add ~/.ssh/id_rsa

SSH to GitHub
$ ssh -T git@github.com
- With debug ssh -vT git@github.com
#If success you can start using
Source by docs.github.com #
 
PREVIOUS NEXT
Tagged: #git #ssh #key #linux
ADD COMMENT
Topic
Name
1+5 =