Answer the question
In order to leave comments, you need to log in
Reverse ssh and access to www, how to set up?
Friends, please advise.
There is a raspberry, behind 2 routers and a 3G modem - you can’t get through from the outside, zabbix with a web interface is spinning on raspberries.
There is a server on ubuntu with white ip.
You need to have access from the Internet to the web interface of Zabbix on Raspberry. I read about reverse ssh, but I don’t understand what to prescribe in the settings and how to access www on raspberries.
Answer the question
In order to leave comments, you need to log in
Reverse SSH tunnels
My favorite feature of SSH tunneling. Indeed, accessing services via SSH, such as encrypting the entire HTTP stream, is cool. But the real surprise awaits us at the moment when we realize that we can reverse the tunnel. Like I said, if you're behind a firewall that doesn't have an SSH server, but needs access and doesn't want to establish a VPN connection, what should you do? From time to time I need to provide such a session to my relatives or acquaintances. In this case, you can connect to your SSH server, then reverse the tunnel by attaching to that open connection. To do this, a relative can start a putty session with saved parameters by connecting to the SSH server under a certain user without rights. When the tunnel is established,
The steps to establish a reverse tunnel are as follows.
From the client machine:
ssh -R remoteport:localhost:22 [email protected]
For a clearer example, let's substitute real parameters into the command:
ssh -R 2048:localhost:22 [email protected]
On the server side to reestablish the tunnel:
ssh -p 2048 localhost
And here you have it, a reverse tunnel.
Proof:
lexpr.ru/ssh_tunneling
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question