SSH tunneling using Linux Machine
Execute the following command:
ssh -vD 9999 -C -N IP_OR_HOSTNAME_OF_REMOTE_MACHINE
ssh -vD 9999 -C -N 22.214.171.124
In the above command,
- -v : verbose mode, output will be detailed.
- -D [port] : a dynamic unused port number on the remote machine and local machine.
- -C : enabling compression for faster data transfer
- -N : Used for forwarding ports only, no command execution.
This will open a connection between remote machine and local machine, and all the traffic will be then forwarded via the remote machine.
After the command is executed, open the web browser, go to the tools -> settings -> network and make the settings as shown in the screenshot below:
Make Sure to open the port 9999 in the firewall/security groups.