Reverse tunnel
Open SSH connections to servers under NAT without needing to redirect ports on the router.
Setup the tunnel server
Install SSH server
apt update
apt install openssh-serverAdd an user called tunnel
tunneluseradd -m -s /bin/bash tunnelSetup the RSA key
su - tunnelssh-keygen -t rsa -b 4096Setup the on-premisse server
Install SSH server
Setup the RSA key
Test connection
From your on-premisse server
From your tunnel server
Configure the tunnel as a service on the on-premisse server
Last updated