I write a python telnet client to communicate with a server through telnet. However, many people tell me that it’s no secure. How can I convert it to ssh? Should I need to totally rewrite my program?
I write a python telnet client to communicate with a server through telnet. However,
Share
Just create a TCP tunnel via SSH and relay all the data through there, no need to reinvent the wheel. You can find examples in SSH docs under TCP tunneling (
man sshfor instance).But if you really want to rewrite it, then check out paramiko project.