Goto user home, run
ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/yichunzhao/.ssh/id_rsa):
Created directory '/Users/yichunzhao/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/yichunzhao/.ssh/id_rsa
Your public key has been saved in /Users/yichunzhao/.ssh/id_rsa.pub
The key fingerprint is:
cd user home directory
cd .ssh
cat id_rsa.pub (public key)
put this key in the github.
No comments:
Post a Comment