Skip to content

Instantly share code, notes, and snippets.

View singhj's full-sized avatar

J Singh singhj

  • Tufts University
  • United States
View GitHub Profile
@singhj
singhj / log
Created August 17, 2011 15:02 — forked from mingderwang/log
Give someone temporary access to your EC2 instance
Sometimes the easiest option is to give someone a key to your instance and revoke it after they are done.
We create a key pair, put the public key on the server, give them the private key.
To create the key pair for suzy,
cd ~/.ssh
ssh-keygen -b 1024 -f suzy -t dsa
cat suzy.pub >> authorized_keys
cat suzy
rm suzy*