- Ensure you're on a non-SRM network. Access the remote machine first as:
sudo ssh -i yourkey.pem [email protected]
- Execute
nano /etc/ssh/sshd_config
and change#PORT 22
toPORT 443
. This ensures the remote machine has its SSH daemon listening on port 443. - Execute
sudo systemctl restart ssh.service
to restart the daemon. - Ensure that it is actually listening on port 443:
sudo netstat -nupt -l
. - Goto your AWS/DO/GCP web console and configure the Inbound ports. You generally would have to create a new Inbound rule (HTTPS-TCP-443-0.0.0.0/0).
- Ensure you're on SRM Network.
- Execute
nano /etc/ssh/sshd_config
and change#PORT 22
toPORT 443
. This ensures your machine has its SSH daemon listening on port 443. - Execute
sudo systemctl restart ssh.service
to restart the daemon. - Ensure that it is actually listening on port 443:
sudo netstat -nupt -l
. - Finally, try connecting to the remote machine as:
sudo ssh -i yourkey.pem -D 8080 [email protected] -p 443
Remember: Replace 12.345.67.890 with your remote machine IP