LoginSignup
0
0

More than 5 years have passed since last update.

秘密鍵と公開鍵を作成する

Last updated at Posted at 2017-03-11

自分用メモ

tonosama$ ssh-keygen -t rsa -b 4096 -C "xxxxxxx@gmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (~/.ssh/id_rsa): ~/.ssh/id_rsa_github
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in ~/.ssh/id_rsa_github.
Your public key has been saved in ~/.ssh/id_rsa_github.pub.
The key fingerprint is:
SHA256:peqSA1OHSh4FfRL1mdqBt9ux2X98tkwyfNxTPeoRgDE xxxxxxx@gmail.com
The key's randomart image is:

tonosama$ 


<参照>
【メモ】githubの複数アカウントにSSH接続するための設定手順

~/.ssh/config

Host github.com
    HostName        github.com
    IdentityFile    ~/.ssh/id_rsa_github
    User            git
    TCPKeepAlive yes
    IdentitiesOnly yes


sshでgithubに接続できるか確認する
ssh -T github.com

ssh -T Hostで接続できます

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0