Sunday, December 16, 2012

perl experience - ssh implement

my @key = ("/root/.ssh/id_rsa");
my $ssh = Net::SSH::Perl->new($host,
        identity_files=>\@key,
#        debug => 1
    );
$ssh->login('root');

No comments: