/ssh-tips-tricks

SSH Tips and Tricks

Creative Commons Zero v1.0 UniversalCC0-1.0

ssh-tips-tricks

SSH Tips and Tricks

STOOIBOXY

Create SSH Keys

  • 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

SSH into Cloud9

  1. Open port 22 to 0.0.0.0 inside EC2 security groups
  2. Paste local id_rsa.pub
  3. ssh -v ec2-user@<ipaddress>

Port forwarding remote server

  1. Create connection
ssh -N -L 8000:127.0.0.1:8000 ec2-user@<ipaddress>
  1. Launch a remote server: python3 -m http.server
  2. open web browser on your laptop or workstation or dev environment

References