I want to connect my personal computer to some routers via Telnet, for managing them.
Actually, my routers is in another network. I open the console, make a SSH connection to the Main Mahcine, and then make a Telnet.
I want to cover that intermediate connection with a SSH tunnel, and directly make a telnet binding for example, the port 2222 to the remote server:22
Finding in Google, I see a easy way to create SSH Tunnel
ssh -f user@server -L 2222:server:22
-L Binds the local port to the remote machine:port -f force to stay background
But now, I don't know how can I send telnet through the SSH tunnel, how can I reference the source, using the tunnel?