[Ssh-sftp-perl-users] Help automating Login without password
Brought to you by:
dbrobins
|
From: Steve K. <he...@ya...> - 2006-04-06 14:23:55
|
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
|