I have a legacy Windoze application which connects to a Linux box using telnet. Is there a way to pipe that across an SSH tunnel so that it “looks like” telnet on both ends.
IOW, I want to set up an SSH tunnel so that I could telnet to the Linux box using the same host IP address and get a telnet login.
You want to use “port forwarding.” Do a “man ssh” and look at the “-L” switch. Determine the port on the Linux box that you want to connect (Telnet is port 23). Then on the client machine, enter something like
ssh -L 1200:127.0.0.1:23 user@linux-box
Then, on the client machine direct the Windows application to connect to port 1200 on the the client (127.0.0.1).