We need to use local port forwarding ssh -L 45678:192.168.1.1:80 <server>:<port>

This will ensure that any access to the url localhost:45678 will be redirected to 192.168.1.1:80 through <server>:<port> assuming you are successfully connected to the ssh server.