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
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) |