Created
April 16, 2010 05:46
-
-
Save adeleinr/368074 to your computer and use it in GitHub Desktop.
SSH Tunneling Cheatsheet
This file contains 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
SSH Check Public/Private Key | |
============================ | |
ssh-add -L => What keys are being accessed | |
ssh-add ssh-add ~/.ssh/adeleinr/id_rsa => Tell it to add key in different directoy | |
SSH Tunneling | |
============= | |
local$ ssh-keygen -t dsa | |
local$ scp ~/.ssh/id_dsa.pub remote | |
local$ ssh username@remote | |
remote$ cat ~/id_dsa.pub » ~/.ssh/authorized_keys | |
remote$ chmod 644 ~/.ssh/authorized_keys - this was one of the things that kept throwing me, ssh doesn’t like this file to be world of group writable. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment