Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
command line for my blog.
// https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/ より。
// 1. まずはssh-agentをバックグラウンドで動かす
$ eval "$(ssh-agent -s)"
// 2. macOS Sierra(10.12)以降は ~/.ssh/config も編集する
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
// 3. パスフレーズをキーチェーンに追加
$ ssh-add -K ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.