Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
@dyasny: at least a nice website. Someone found this:… – Ilias Feb 4 '11 at 12:45

Your Answer


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.