I have a server that is only accessible through a single port (I use a VPN with port forwarding). I have setup a reverse proxy using NGINX for some HTTPS servers that I'm hosting.
I'm wondering if I can do something similar where I can specify a location, and it redirects to a LAN IP with the ssh port 22.
location /ssh/ {
proxy_pass 192.168.1.44:22;
}
I know proxy_pass only works for HTTP, but I'm wondering if there is something that would work for ssh.