-M: Creates a direct tunnel on a port, loop-backed to a reverse one, echo_port.If we add authentication keys, as shown on our SSH keys tutorial, the tunnels will open without user intervention, as long as autossh is running. This utility can automatically create and recreate SSH sessions. curl supports both SOCKS version 4 as well as version 5, and both versions come in two flavors. Even if we can even configure the frequency and timeout for the session keepalives to facilitate the connection-loss detections, it would be nice to fully automate the SSH session creation and reconnection.įor that, a handy piece of software is autossh. SOCKS is a protocol used for proxies and curl supports it. Persistent Tunnelsīy the way, an SSH tunnel only exists as long as the SSH connection holds. Also, the host specification allows wildcards. To use local forwarding, connect to the SSH server normally, but also supply the -L argument. Reverse/callback tunnel on port 8022 in the loopback interfaces of the SSH server to our local client hostĪ lot of other options are available, like compression, Kerberos authentication forwarding, and many others. ![]()
0 Comments
Leave a Reply. |