Re: [Ssh-sftp-perl-users] Help automating Login without password
Brought to you by:
dbrobins
|
From: Matthew J. S. <vag...@ya...> - 2006-04-06 19:22:21
|
After messing with this module for the last few weeks,
I don't bother with the documentation, I look at the
source first.
Good luck
--- Steve Kirkup <he...@ya...> wrote:
> Mathew,
>
> The 'DSSAuthentication' parameter did the trick!,
> Well that and the Crypt::DSA module...
>
> Those options would have been more help though if
> the
> yare actually included in the documentation. Some
> of
> those I recognize but there are quite a few options
> in
> there that are not documented.
>
> Steve Kirkup
>
> --- "Matthew J. Salerno" <vag...@ya...>
> wrote:
>
> > You might need to specify some options for the
> > connection, especially, DSAAuthentication.
> >
> > $params{"DSAAuthentication"} = "yes";
> >
> > my $ssh = Net::SSH::Perl->new($host, %params);
> >
> > Here is a full list of params you can pass:
> >
>
http://search.cpan.org/~dbrobins/Net-SSH-Perl-1.30/lib/Net/SSH/Perl/Config.pm
> >
> > BindAddress
> > Host
> > BatchMode
> > ChallengeResponseAuthentication
> > Cipher
> > Ciphers
> > Compression
> > CompressionLevel
> > DSAAuthentication
> > GlobalKnownHostsFile
> > HostKeyAlgorithms
> > HostName
> > IdentityFile
> > NumberOfPasswordPrompts
> > PasswordAuthentication
> > PasswordPromptHost
> > PasswordPromptLogin
> > Port
> > Protocol
> > RhostsAuthentication
> > RhostsRSAAuthentication
> > RSAAuthentication
> > UsePrivilegedPort
> > User
> > UserKnownHostsFile
> >
> >
> >
> >
> > --- Steve Kirkup <he...@ya...> wrote:
> >
> > > howdy,
> > >
> > > I was trying to setup Net::SSH::Perl to work
> with
> > an
> > > id_dsa key file. I do not want to store a
> password
> > > in
> > > my code or config file. I got ssh and scp to
> work
> > > with using the id_dsa key file with my remote
> host
> > > (ie
> > > it does not prompt me for a password). However,
> I
> > > cannot get my scripting to work without using a
> > > password? Can someone point me in the right
> > > direction?
> > >
> > > --script starts here--
> > >
> > > use Net::SSH::Perl;
> > >
> > > my $server = Net::SSH::Perl->new(
> > > 'www.my.server.gov',
> > > identity_files => [$ENV{HOME}.
> > "/.ssh/id_dsa"],
> > > );
> > >
> > > $server->login('myuser') or die "Cannot log
> > in\n";;
> > >
> > > warn "Logged in\n";
> > >
> > > --script ends here--
> > >
> > > Steve Kirkup
> > >
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam
> > > protection around
> > > http://mail.yahoo.com
> > >
> > >
> > >
> >
>
-------------------------------------------------------
> > > This SF.Net email is sponsored by xPML, a
> > > groundbreaking scripting language
> > > that extends applications into web and mobile
> > media.
> > > Attend the live webcast
> > > and join the prime developer group breaking into
> > > this new coding territory!
> > >
> >
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > > _______________________________________________
> > > Ssh-sftp-perl-users mailing list
> > > Ssh...@li...
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|