Is it possible to use tunneling to connect to a ssh server via telnet? I'm using an API that can only telnet to a host, but that host will only accept ssh connections. If it is possible, what do I need to do to set that up?
A:
i think what would work would be to run a telnet server on a local port on the host and use ssh to forward that locally where the api could connect to it; but that's just a bit silly
Dan D
2010-08-03 22:57:45
A:
Use netcat and ssh
$ nc -l -p 12345 -c "ssh [email protected]"
make sure that you have RSA auth setup, since you cannot enter a password.
mvds
2010-08-04 01:23:47