SSH using PEXPECT

2008-09-10 Thread yellowblueyellow
Hey , I need to SSH into a server .. (10.8.42.38) using pexpect the username is 'admin' and password is 'abc123' so far i have the following code import pexpect import sys import time import os foo = pexpect.spawn('ssh [EMAIL PROTECTED]') ssh_newKey = 'Are you sure you want to continue connecti

Re: SSH using PEXPECT

2008-09-11 Thread yellowblueyellow
On Sep 10, 7:01 pm, Sean DiZazzo <[EMAIL PROTECTED]> wrote: > On Sep 10, 6:04 pm, [EMAIL PROTECTED] wrote: > > > > > Hey , I need toSSHinto a server .. (10.8.42.38) usingpexpectthe > > username is 'admin' and password is 'abc123' so far i have the > > following code > > > importpexpect > > import s