[Tutor] pexpect/pxssh

Vinay Reddy vinayvinay at gmail.com
Tue Oct 7 19:22:35 CEST 2008


Hi,
I wish to automate some of my network related tasks, which involves
sshing into a remote box and executing some commands. I looked at
pxssh for that purpose but it seems to throw an exception when I have
ssh keys setup so that logins can happen without explicit password
authentication.

Is there a way to use pxssh (or some other tool) to just ssh in if
keys are setup correctly, else fallback to password based
authentication.

Thanks,
Vinay


More information about the Tutor mailing list