Ubuntu 20.04 connected to the internet through wifi with a static IP address 192.168.1.133
Is there a way to set up something so that I can ssh to it remotely? I do not have access to the router
I set up a reverse tunnel to an http server like this
$ sudo ssh -R 8001:127.0.0.1:3000 -N -f [email protected]
This works From the remote host, I can connect to the local host with elinks.
SUCCESS
ssh --R 2022:127.0.0.1:2222 -N -f [email protected] -i .ssh/djangoserver
From the remote machine:
ssh -p 2022 d0325mgray@localhost
Successfully connects me to my local machine.
sudo
. It is unnecessary and a security risk to runssh
with root privilege for that.5522:
in your second command. If it still doesn't work, check whether port 5522 is already in use on remote.host.