Skip to content

Instantly share code, notes, and snippets.

@adeleinr
Created April 16, 2010 05:46
Show Gist options
  • Save adeleinr/368074 to your computer and use it in GitHub Desktop.
Save adeleinr/368074 to your computer and use it in GitHub Desktop.
SSH Tunneling Cheatsheet
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