2. ```ssh -i $SSH_KEY -L 8000:localhost:8000 -N -f...
# replication-troubleshooting
j
2.
Copy code
ssh -i $SSH_KEY -L 8000:localhost:8000 -N -f ec2-user@$INSTANCE_IP
which port is local and which is remote? do they have to be equal? e.g. can I run port 8000 on EC2 but map it to port 8888 locally?
wow, nevermind, I figured it out! weirdly, the first port is local and the second (after localhost) is remote (mapping to 8888 locally):
ssh -i $SSH_KEY -L 8888:localhost:8000 -N -f ec2-user@$INSTANCE_IP