-1

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
Cristian Ciupitu
  • 6,396
  • 2
  • 42
  • 56
Ilias
  • 111
  • 4
  • What is your question? – Alex Holst Feb 04 '11 at 09:45
  • @Alex Holst, I want a python script that do the following steps, i described above. – Ilias Feb 04 '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 04 '11 at 10:27

1 Answers1

5

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.

alvosu
  • 8,437
  • 25
  • 22
  • Ok,thank for your answer. But I'm looking for a start script. – Ilias Feb 04 '11 at 09: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 04 '11 at 12:16
  • 1
    @dyasny: at least a nice website. Someone found this: http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/ – Ilias Feb 04 '11 at 12:45