Open utterances-bot opened 11 months ago
autossh -f -nNT -i ~/.ssh/key -R 2222:0.0.0.0:22 user@IP
$ cat /etc/systemd/system/autossh-tunnel.service
[Unit]
Description=AutoSSH Tunnel
After=network-online.target
[Service]
User=X
Group=X
ExecStart=/usr/bin/autossh -nNT -i /home/X/.ssh/KEY -R 2222:0.0.0.0:22 USER@ADDR
[Install]
WantedBy=multi-user.target
Setting up SSH reverse proxy
Providing an SSH access to a home server (usually hidden behind NAT) from outside world (Internet) sounds like a tricky task to configure. But it is not, literally 2 commands and a VPS witn public IP is enough to do that.
https://sergey-melnychuk.github.io/2019/07/09/ssh-proxy/