Skip to content

Instantly share code, notes, and snippets.

@chsh
Created December 2, 2012 15:46
Show Gist options
  • Save chsh/4189387 to your computer and use it in GitHub Desktop.
Save chsh/4189387 to your computer and use it in GitHub Desktop.

ターミナル実行

ssh-keygen と打ち込む

Generating public/private rsa key pair. Enter file in which to save the key (/Users/chsh/.ssh/id_rsa):

とでてくるのでリターン。

Enter passphrase (empty for no passphrase):

と出てくるので、今回作る鍵そのもののためのパスワードとして入力。 空でもまあ大丈夫。ログインパスワードとは*違う*ものです。 鍵にアクセスするためのパスワードです。

Enter same passphrase again:

とでるので再度パスワードを入力。

Your identification has been saved in /Users/you/.ssh/id_rsa. Your public key has been saved in /Users/you/.ssh/id_rsa.pub. The key fingerprint is: <<>> The key's randomart image is: +--[ RSA 2048]----+ | .=+...o | | o .= o | | +..o | | . *o. | | + +So . | | + + ... | | + . | | . E | | | +-----------------+

みたいなのが出てくればOK

次に、

cat ~/.ssh/id_rsa.pub | pbcopy

と実行したあと、テキストエディタを立ち上げてcmd+vで貼り付け。

貼り付けた内容をメッセージなどでそのまま送る。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment