Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
share|improve this question
    
What is your question? –  Alex Holst Feb 4 '11 at 9:45
    
@Alex Holst, I want a python script that do the following steps, i described above. –  ilias Feb 4 '11 at 10:00
    
I can't think of anything that meets those requirements. If you instead tell us what you're trying to achieve, we might be able to help. For instance, is there any particular reason the user can't just type ssh user@hostname 'menu-item-6'? –  Alex Holst Feb 4 '11 at 10:27

1 Answer 1

I use fabric. Fabric is a Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.

share|improve this answer
    
Ok,thank for your answer. But I'm looking for a start script. –  ilias Feb 4 '11 at 9:58
    
you were given a python library that can do what you need. Are you expecting people to write your scripts for you, for free? –  dyasny Feb 4 '11 at 12:16
1  
@dyasny: at least a nice website. Someone found this: jessenoller.com/2009/02/05/… –  ilias Feb 4 '11 at 12:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.