Re: [j-nsp] XML & JUNOS

From: hayter (hayter@usc.edu)
Date: Tue Jun 25 2002 - 14:07:27 EDT


On Fri, Jun 21, 2002 at 10:52:05PM -0400, Phil Shafer wrote:
> >i had a couple of problems with
> >Juniper's example code (get_config load_configuration) and trying
> >to use RSA authentication.
>
> What problems did you have? Perl install problems? SSL problems?
> What was the workaround?

it was Net::SSH::Perl's fault ;) the documentation implies that
if your RSA identity is all set up (i can ssh to juniper w/o passwords)
then $ssh->login() will do the trick. it doesn't. you have to
give $ssh->login('username','afakepassword').

even though 'username' isn't my username and 'afakepassword' isn't
the password for anything, it makes Net::SSH::Perl complete the
RSA authentication process.

i just hacked Net::SSH::Perl to use the users username and a non-null
password unless they are explicitly set. this allows $ssh->login() to
work as documented.

----
Carl



This archive was generated by hypermail 2b29 : Mon Aug 05 2002 - 10:42:36 EDT