-
Notifications
You must be signed in to change notification settings - Fork 0
Como configurar o Git
ls -al ~/.ssh
ssh-keygen -t rsa -b 4096 -C "[email protected]"
Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]
Enter passphrase (empty for no passphrase): [Type a passphrase]
Enter same passphrase again: [Type passphrase again]
Your identification has been saved in /Users/you/.ssh/id_rsa.
Your public key has been saved in /Users/you/.ssh/id_rsa.pub.
The key fingerprint is:
01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db [email protected]
cd ~/.ssh
eval $(ssh-agent)
ssh-add ~/.ssh/id_rsa
clip < ~/.ssh/id_rsa.pub
Copies the contents of the id_rsa.pub file to your clipboard
ssh -T [email protected]
Go to Settigns
Deploy Key
Paste the SSH key on the text field, and "Add Key".
GitHub tutorial for SSH Keys(07/2015)
StackOverFlow how to conect to agent SSH (07/2015)