- Server. (EXAMPLE IP: xxx.xxx.xxx.xxx)
- SSH Server installable device. (Mobile Phone, Raspberry Pi, PC ...) (IP: localhost)
- Start SSH Server. (EXAMPLE PORT: 22)
- Open Terminal and follow this command.
# Choose Random Free PORT (EXAMPLE PORT: 3000)
$ ssh -N -R xxx.xxx.xxx.xxx:3000:localhost:22 xxx.xxx.xxx.xxx
- Connect with SSH.
# like this
$ ssh -p 3000 xxx.xxx.xxx.xxx