Skip to content
GradedJestRisk edited this page Mar 24, 2020 · 6 revisions

Generation (ssh-keygen)

Overview:

  • generate: ssh-keygen -t rsa -b 4096 -C “your_email@example.com”
  • get the public key (not private): cat ~/.ssh/id_rsa.pub
  • change passphrase: ssh-keygen -p

Agent (ssh-agent)

Overview:

  • start (if not working): eval `ssh-agent`
  • list all accessible keys (.ssh) : ssh-add -l
  • add a key : ssh-add
  • remove all keys: ssh-add -D
Clone this wiki locally