Re: [Ssh-sftp-perl-users] Problem With Net::SSH
Brought to you by:
dbrobins
From: Ian D. <Ian...@bd...> - 2009-06-10 13:13:41
|
Hi Are you able to do an SSH command from the command line to the remote host without entering a password? In other words are your public keys set up on the host correctly? Regards Ian ________________________________ From: cheerla sreehari [mailto:ch....@gm...] Sent: 10 June 2009 07:51 To: ssh...@li... Subject: [Ssh-sftp-perl-users] Problem With Net::SSH Hi All , I am trying to do ssh to a machine from my client using the following CODE : use Net::SSH qw(sshopen2); use strict; my $user = "root"; my $host = "changeme"; my $cmd = "ls /root/"; sshopen2("$user\@$host", *READER, *WRITER, "$cmd") || die "ssh: $!"; while (<READER>) { chomp(); print "$_\n"; } close(READER); close(WRITER); When I execute this code it says "Permission denied (publickey,keyboard-interactive)." .Am I missing something here ? The host I am trying to login is a SUSE machine . Please suggest me the solution to get of this problem . Regards, SreeHari Ch |