Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active December 9, 2023 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/4b2373499c93f5ccb1f80695d25968d1 to your computer and use it in GitHub Desktop.
Save dacr/4b2373499c93f5ccb1f80695d25968d1 to your computer and use it in GitHub Desktop.
ssh cheat sheet / published by https://github.com/dacr/code-examples-manager #afbdfa64-a543-42ae-bda8-8d1ff5bf412e/842968262dfcd7e0ef1b37ec4bf55fbf8015843e

SSH cheat sheet

Client usage

Preload several ssh keys

eval $(ssh-agent) && ssh-add $(ls ~/.ssh/id_* | grep -v .pub | grep -v .pem)
sudo apt-get install ssh-askpass
export SSH_ASKPASS=/usr/bin/ssh-askpass
eval $(ssh-agent) && ssh-add $(ls ~/.ssh/id_* | grep -v .pub | grep -v .pem)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment