GitHub入門 設定SSH Key

陳重陽發表於2017-01-15

1.設定SSH Key

生成SSH Key

$ ssh-keygen -t rsa -C "22377832@qq.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/sks/.ssh/id_rsa): 
/Users/sks/.ssh/id_rsa already exists.
Overwrite (y/n)? n

設定SSH Key enter image description here 貼上id_rsa.pub檔案的內容,並新增適當的標題。

$ ssh -T git@github.com
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
Hi 22377832! You've successfully authenticated, but GitHub does not provide shell access.

設定SSH Key成功。 enter image description here

相關文章