Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Last active August 29, 2015 14:14
Show Gist options
  • Save Voronenko/e3f8ac01fc23b5b49865 to your computer and use it in GitHub Desktop.
Save Voronenko/e3f8ac01fc23b5b49865 to your computer and use it in GitHub Desktop.
Copy SSH pub key to remote PC for key based login
cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
# ssh -fNg -L 3307:127.0.0.1:3306 b@B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment