Skip to content

Instantly share code, notes, and snippets.

@Krettis
Last active December 18, 2015 12:40
Show Gist options
  • Save Krettis/307ee845f7c344f85bb8 to your computer and use it in GitHub Desktop.
Save Krettis/307ee845f7c344f85bb8 to your computer and use it in GitHub Desktop.
All ssh-stuff in here

Install your public key into the machine

ssh-copy-id [-i [identity_file]] [user@]machine 

Link to a port in your machine

$ ssh -f -N -L 9471:127.0.0.1:3306 user@db-machine.org.gov
# -f ssh in background
# -N not executing a command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment