Last active
October 4, 2015 23:47
-
-
Save manuelmorales/2718165 to your computer and use it in GitHub Desktop.
Common ssh keys operations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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