SSH/Telnet program to Router/switch

Chris Angelico rosuav at
Wed Feb 19 09:45:59 CET 2014

On Wed, Feb 19, 2014 at 7:14 PM, Sujith S <sujiths80 at> wrote:
> Hi,
> I am new to programming and python. I am looking for a python script to do ssh/telnet to a network equipment ? I know tcl/perl does this using expect/send.
> Do we have expect available in python as well or need to use some other method ?

Yep! Look up the socket module. Straight-forward TCP sockets are
usually easy enough to work.


More information about the Python-list mailing list