Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ssh key git

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
 
PREVIOUS NEXT
Tagged: #ssh #key #git
ADD COMMENT
Topic
Name
8+3 =