linuxkrn wrote:pmatos wrote:
Why firewall in both hosts as arguments? More over, that will enter firewall, then can you close the connection and tunnel will stay up or not?
In my example I had two firewalls. You only have one so you will need to modify it a bit. It's just there to give you an example.
Use -N -f to have ssh run in the background.
Hello, so again, in my example, I have euler, firewall and notos. Notos is office, behind firewall. euler is my laptop with which I want to ssh notos transparently through firewall.
So I ssh firewall and did:
Code: Select all
firewall $ ssh -N -f -L 48337:notos:22 notos
This would forward port 48337 from firewall to 22 in notos (ssh port).
Indeed I have:
Code: Select all
firewall $ netstat -a | grep 48337
tcp 0 0 localhost.localdo:48337 *:* LISTEN
tcp 0 0 ::1:48337 *:* LISTEN
The problem is that in euler I do:
I would expect to enter notos directly, right?
But no... the connection just never returns, at least not in 3 min. Just stays there without an answer and I end it with Ctrl-C.
Any ideas of what's happening?
Regards,
Paulo Matos