Last active
April 7, 2018 13:41
-
-
Save todorok1/3fdd176403950c97504882e3e6e07dd5 to your computer and use it in GitHub Desktop.
command line for my blog.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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