最近狀況還挺多的
沒想到連Blog上傳都有問題XD
因為Blog放在Github,又懶得去搞SSH
所以只好把Github.app開著,一邊上傳Blog(很懶的做法,但是很有效)
但是經過昨天起肖,把keychain內的東西全部砍了
結論最後Github.app就一整個死給我看(怒
Github Help的這篇Generating SSH Keys是相當完整的解決方案
Step 2: Generate a new SSH key
ssh-keygen -t rsa -C "your_email@example.com"
# Creates a new ssh key, using the provided email as a label
# Generating public/private rsa key pair.
# 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]
# start the ssh-agent in the background
eval "$(ssh-agent -s)"
# Agent pid 59566
ssh-add ~/.ssh/id_rsa
Step 3: Add your SSH key to GitHub
$ pbcopy < ~/.ssh/id_rsa.pub
# Copies the contents of the id_rsa.pub file to your clipboard
做到這個步驟會把rsa複製到剪貼簿
接著再去Github -> Settings -> SSH Keys -> Add SSH Key
Step 4: Test everything out
ssh -T git@github.com
# Attempts to ssh to github