SSH Key 產生 ssh-keygen -f [KEY_FILENAME] -C [USERNAME]
ssh-keygen -f [KEY_FILENAME] -C [USERNAME]
把 SSH 公鑰上傳到 GitHub 之後,
vi .git/config
若產生的 key 檔名為自定義(如 github),需要設置 ~/.ssh/config
~/.ssh/config
Host github.com IdentityFile ~/.ssh/github User [Username]
SSH
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up