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
@mingderwang
mingderwang / log
Created August 16, 2011 06:11
add a public key for new host to ssh aws ec2
1. make a new public on local host (generate public key under ~/.ssh)
cd
ssh-keygen -t rsa -b 1024
2. copy the output of the following cat.
cat ~/.ssh/id_rsa.pub
3. ssh to your aws ec2 and paste it to ~/.ssh/authorized_keys2 (a new file)