githubにおけるsshの構成
1245 ワード
前言
メモとしてgithubにsshを配置することは、コードクラウドにsshを配置するよりも簡単である(前の文章で紹介した).
~ alexwilliam$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/alexwilliam/.ssh/id_rsa):
/Users/alexwilliam/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/alexwilliam/.ssh/id_rsa.
Your public key has been saved in /Users/alexwilliam/.ssh/id_rsa.pub.( )
The key fingerprint is:
SHA256:YKcq81eJfsOIJcqcIaUQ9rxpHbtHBjHq0YisJFCF09Y [email protected]
The key's randomart image is:
+---[RSA 2048]----+
| ..+.. |
|o.o ooE |
|+.+o+ = . |
|o+.* = + |
|=o. = =.S. |
|+ .=.+ooo |
| +++.=++ |
| =+..+.+ |
| .... . |
+----[SHA256]-----+
~ alexwilliam$
端末会のこの言葉:Your public key has been saved in/Users/alexwilliam/.ssh/id_rsa.pub.(これが我々に必要な公開鍵である)、経路に基づいて対応する公開鍵を見つけ、複製する.
まとめ
「積み重ねなければ千里もない」と、毎日新しいことを学びたい.