Re: [Tutor] SSH session problems with network devices

2010-08-26 Thread James Mills
On Fri, Aug 27, 2010 at 9:13 AM, wrote: > > Yes. No problem. The point is that I have Python programs that normally > access these devices by telnet to complex tasks. I have to find a way to use > SSH to replace the telnet in my code. I actually have no experience with Cisco devices, but the que

Re: [Tutor] SSH session problems with network devices

2010-08-26 Thread Steven D'Aprano
On Fri, 27 Aug 2010 02:54:27 am davidheise...@gmail.com wrote: > I have Python code that opens a telnet session with a network device > and performs a multitude of tasks. Now, I am trying to establish and > maintain an SSH connection as an alternative to telent. My research > has found that the SSH

Re: [Tutor] SSH session problems with network devices

2010-08-26 Thread James Mills
On Fri, Aug 27, 2010 at 8:42 AM, wrote: > > I'm running tests on - Cisco IOS Software, s72033_rp Software > (s72033_rp-ADVIPSERVICESK9_WAN-M), Version 12.2 > > It's running SSHv2.0 > > My solution should be portable to other vendor/models. Can you "normally" ssh into your Cisco routers and be pr

Re: [Tutor] SSH session problems with network devices

2010-08-26 Thread James Mills
On Fri, Aug 27, 2010 at 2:54 AM, wrote: > My Paramiko code works correctly when connecting with a Linux system. But > when I connect with a router, the connection is dropped immediately after a > command is exectued, so it isn't possible to send a sequence of interrelated > commands. What Router

[Tutor] SSH session problems with network devices

2010-08-26 Thread davidheiserca
I have Python code that opens a telnet session with a network device and performs a multitude of tasks. Now, I am trying to establish and maintain an SSH connection as an alternative to telent. My research has found that the SSH implementation some network device manufacturers use is not consis