SSH Tips and Tricks
- Step 1:
ssh-keygen -t rsa
- Step 2:
cat /home/ec2-user/.ssh/id_rsa.pub
- Step 3:
Copy to Github
- Step 4:
Clone repo
- Open port 22 to 0.0.0.0 inside EC2 security groups
- Paste local
id_rsa.pub
ssh -v ec2-user@<ipaddress>
- Create connection
ssh -N -L 8000:127.0.0.1:8000 ec2-user@<ipaddress>
- Launch a remote server:
python3 -m http.server
- open web browser on your laptop or workstation or dev environment