Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active April 7, 2018 13:41
Show Gist options
  • Save todorok1/3fdd176403950c97504882e3e6e07dd5 to your computer and use it in GitHub Desktop.
Save todorok1/3fdd176403950c97504882e3e6e07dd5 to your computer and use it in GitHub Desktop.
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