Reputation: 51
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?
Upvotes: 2
Views: 2406
Reputation: 47044
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.
Upvotes: 1
Reputation: 74655
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
Upvotes: 0