Hello,
This weekend I had a little of free time and decided to write something for fun in python (don't judge, everyone has their own definitions of "fun"), so I wrote a very basic SSH to Telnet proxy. The use case - managing some older devices that don't support SSH with Ansible, as well as possibly managing virtual devices via virtual console (created in VIRL or similar environments where telnet is your only option).
It is not tested well at all, but hopefully it can give some head start for people who may need something like this. And if I have more time, I can work on improving it as well - just ping me here or on github and I'll see what I can do.
Source code: https://github.com/eoprede/ssh_to_telnet_proxy
Also if you are interested in how easy it to write this turned out to be (literally 95% of the code was readily available for copy-paste), I have written a blog at packetpushers about it: https://packetpushers.net/coding-in-python-by-copy-paste-and-google-search-ssh-to-telnet-proxy-in-1-hour/
No comments:
Post a Comment