I have a Raspberry Pi that sets up an SSH tunnel with my VPS so that I can access several things remotely. My Pi forwards its local port 80 to my VPS's port 3180, so I can access it via
http://domain.com:3180. My domain, however, is automatically using SSL/TLS and doesn't allow me to bypass this unless I go to the IP address instead of the domain name. I like this functionality, but I get a "Connection Dropped" error when any browser attempts to access the SSL/TLS page.
How can I either set up the connection so that I can connect to the Pi's web server via my VPS's domain name/port using SSL/TLS (preferred method), or disable HTTPS forwarding just for that port (less preferred method)?
The Pi is running Raspbian Wheezy, and the VPS is on Ubuntu Server 15.04.
My Pi creates the connections with this command (three separate ports are forwarded, the port numbers are just changed accordingly):
ssh -f -N -R 3180:localhost:80 -i /home/user/.ssh/id_rsa -p 22 user@IP_ADDRESS