ssh port forwardin in ssh_config
I would like to have a permanent ssh forwarding of the form
ssh -f -N -L9112:localhost:9102 example.org 'man ssh' says that this can be specified in the /etc/ssh/ssh_config file. I tried this: Code:
Host example.org Thanks Ernst |
well restarting SSHD will make no difference in the slightest, as that's the server, and you're trying to modify the client, which is totally unconnected.
The config looks OK to me, add a few -v's to the command line and read the debugging for what it thinks of the config. |
I think you just need to actually create the tunnel:
Code:
ssh example.org Evo2. |
Erm... yeah... you are actually sshing to the remote server right???
|
Good I can see now that restarting the sshd was just wishful thinking.
But won't Quote:
without setting up a port forwarding? In other words how do I tell the client to set up forwarding using the information from the ssh_config |
Erm... that's the point of putting the config in the ssh_config file... :confused:
|
When you "ssh example.org", the line "Host example.org" in your ssh_config will match it and the port forwarding rules you specified will be applied, so that you don't have to explicitly type out "ssh -L 9112:localhost:9102 example.org" to create the tunnel.
Normally I would use a "made up" host name for the "Host" line, otherwise, each time you just want to ssh to example.org ssh will try to create another tunnel. eg Code:
Host exampleTunnel HTH, Evo2. |
The file:
/home/username/.ssh/config settings will take precedence over /etc/ssh/ssh_config. |
Quote:
you need to define sleep mode Code:
|
Thank you everyone,
My confusion is easing a little. I did like the tip Quote:
I will also try the Quote:
Rather than opening the firewall I try to tunnel through ssh. Although I can now establish those forwardings it seems to be rather fragile. Like after about 1GB I get: Quote:
|
All times are GMT -5. The time now is 04:43 AM. |