Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 840 Bytes

File metadata and controls

34 lines (27 loc) · 840 Bytes

SSH

  1. ssh-keygen is run via: ssh-keygen -t rsa -b 4096 -a 100
  2. A private key id_rsa and public key id_ras.pub are created
  3. The public key (id_rsa.pub) is provide to the github account for association
  4. The private key (id_rsa) is placed within the users .ssh folder (typically the folder is located at %userprofile%\.ssh on Windows)
  5. The config or ssh_config file is created/modified to point to the private key

Config

Host * github.com
  HostName github.com
  User git
  IdentityFile ~/.ssh/<id_rsa>
  IdentitiesOnly yes

Note: The config may point to more than one private key

Host * github.com
  HostName github.com
  User git
  IdentityFile ~/.ssh/<id_rsa>
  IdentitiesOnly yes

Host * github.com
  HostName github.com
  User git
  IdentityFile ~/.ssh/<id_rsa_2>
  IdentitiesOnly yes