Skip to content

Instantly share code, notes, and snippets.

@manuelmorales
Last active October 4, 2015 23:47
Show Gist options
  • Select an option

  • Save manuelmorales/2718165 to your computer and use it in GitHub Desktop.

Select an option

Save manuelmorales/2718165 to your computer and use it in GitHub Desktop.
Common ssh keys operations
# Generate fingerprint from public key
ssh-keygen -lf id_rsa.pub
# Forward keys
# ~/.ssh/config
host *
ForwardAgent yes
# Make forwarded keys available to root
sudo su -l -c "export SSH_AUTH_SOCK=$SSH_AUTH_SOCK; bash"
# Use a jumpbox
host *.jumpboxed-env.com
user mmorales
proxycommand ssh -W %h:%p my-jumpbox.com
ForwardAgent yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment