On 2017-02-20 16:17, Anton Aylward wrote:
On 02/20/2017 10:04 AM, Carlos E. R. wrote:
Where can I read about this? A nice document for dummies would be nice, I'm not asking for someone to start typing the full explanation :-)
Even the right string for a search in google or elsewhere is nice ;-)
I have two pertinent books on my nearby shelf. Both by O'Reilly.
"SSH, the Secure Shell" has a section on setting up a SSH tunnel.
"Virtual Private networks" has a more general section on SSH and also such techniques as SSH+PPP, as well as VPNs though firewalls, layer 2 VPNs, as well as the basic principles of identification, authentication and encryption. It touches on but doesn't drill down on IPSec and S/WAN.
Both have pages of resource lists.
Apparently, the thing is very easy, according to two pages I read: http://www.revsys.com/writings/quicktips/ssh-tunnel.html http://blog.trackets.com/2014/05/17/ssh-tunnel-local-and-remote-port-forward... «Another good example is if you need to access a port on your server which can only be accessed from localhost and not remotely.» «An example here is when you need to connect to a database console, which only allows local connection for security reasons. Let’s say you’re running PostgreSQL on your server, which by default listens on the port 5432.» «$ ssh -L 9000:localhost:5432 user@example.com» «The part that changed here is the localhost:5432, which says to forward connections from your local port 9000 to localhost:5432 on your server. Now we can simply connect to our database.» «$ psql -h localhost -p 9000» I understand that explanation, it is very simple! Plain as water! But it doesn't work for me... I do: ssh -X cer@home.server -L 60000:localhost:80 -N or ssh -L 60000:localhost:80 -N cer@home.server which connects, of course (no error messages); then I browse on the client to: http://localhost/:60000 and get: +++------------------------ Unable to connect Firefox can’t establish a connection to the server at localhost. The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer’s network connection. If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. ------------------------++- -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))