Alex Rivera | Logout

Python script - connect to SSH and run command

Asked 2011-02-04T10:12:04.100
10

I already know there are ssh modules for Python, that's not for what I'm looking for. What I want to have is an python script to do the following:

  1. > connect to an [ input by user ] SSH host
  2. > connect using the credentials [ provided by the user ]
  3. > run command on the SSH host [ telnet to [host - input by user ]
  4. > Select menu item in the telnet session

Thanks in advance,

Best regards,

Edit
Report

2 Answers

10
answered 2011-02-04T10:57:01.160
4
answered 2011-02-04T10:59:46.633

Your Answer