unable to connect to SuSE using net::ssh::perl module



Hi,


I am trying to connect from Fedora Core 4 machine to SuSE 9 Enterprise
Server machine using Net::SSH::Perl module. My code terminates at the
call of the login method with a "Permission denied" message. The
credentials provided by me are correct I am able to SSH to the SuSE
machine from the terminal using the same credentials as in the perl
program. Can someone please help me figure out the problem.


the OpenSSH version on the SuSE machine is OpenSSH_3.8p1 and
the OpenSSH version on the Fedora machine is OpenSSH_4.2p1.

the perl installed is perl-5.8.6-15

the Net::SSH::Perl i am using is Net-SSH-Perl-1.29


my code :


sub ssh_connect{


my($host,$uname,$pwd,$cmdstr)=@_;

#opening connection with the remote host by creating object and
providing credentials

my $objfnssh = Net::SSH::Perl->new($host,compression=>1, debug=>1,
protocol=>'2,1');
$objfnssh->login($uname,$pwd);

my @out=$objfnssh->cmd($cmdstr);
#print @out;


}



output :

Reading configuration data /home/anuradha_moturi/.ssh/config
xxxxx: Reading configuration data /etc/ssh_config
xxxxx: Connecting to 172.21.130.41, port 22.
xxxxx: Remote protocol version 1.99, remote software version
OpenSSH_3.8p1
xxxxx: Net::SSH::Perl Version 1.29, protocol version 2.0.
xxxxx: No compat match: OpenSSH_3.8p1.
xxxxx: Connection established.
xxxxx: Sent key-exchange init (KEXINIT), wait response.
xxxxx: Algorithms, c->s: 3des-cbc hmac-sha1 zlib
xxxxx: Algorithms, s->c: 3des-cbc hmac-sha1 zlib
xxxxx: Entering Diffie-Hellman Group 1 key exchange.
xxxxx: Sent DH public key, waiting for reply.
xxxxx: Received host key, type 'ssh-dss'.
xxxxx: Permanently added '172.21.130.41' to the list of known hosts.
xxxxx: Computing shared secret key.
xxxxx: Verifying server signature.
xxxxx: Waiting for NEWKEYS message.
xxxxx: Enabling incoming encryption/MAC/compression.
xxxxx: Send NEWKEYS, enable outgoing encryption/MAC/compression.
xxxxx: Sending request for user-authentication service.
xxxxx: Service accepted: ssh-userauth.
xxxxx: Trying empty user-authentication request.
xxxxx: Authentication methods that can continue:
publickey,keyboard-interactive.
xxxxx: Next method to try is publickey.
Permission denied at ./res_ssh.pl line 75

.



Relevant Pages

  • Re: Slow DNS Lookup - Debian
    ... rpm distributions as well. ... In my experiments, I have run Fedora Core 1 and Fedora Core 4, Linspire 5-0, and SuSe 10.0. ... On every single one of these distributions, loading webpages takes forever, and when I request a page I typically see "Looking up.com" in the bottom-left corner of Firefox for five-to-fifteen seconds before the page actually starts to load. ...
    (comp.os.linux.networking)
  • Re: Suse 9.3 auf PII/400
    ... diese Tage mit Fedora Core 5 installiert habe. ... Man muss aber dazu sagen, dass SuSE dazu neigt, nach der ... Linux wichtiger die MHz der CPU oder mehr die RAMs da? ... Briefe z.B. schreiben kann ohne das der kaum hinterher kommt bis die ...
    (de.comp.os.unix.linux.misc)
  • [SLE] Speed comparison - SuSE 9.2 compared to Fedora Core 3
    ... 20 gig HD) and decided to try Fedora Core 3 out to see what it ... Now, I'm completely convinced that I want to use SuSE over FC3, but one ... decent RAM specs, decent HD space, but lacking in the CPU department? ...
    (SuSE)
  • Re: This also happened to me, easy to fix...
    ... I'm just giving general guidelines to a newbie. ... account is non functional you'll have to go in as root to fix it. ... I love suse actually, but yast has long ago past the ... fedora core 2's anaconda that messed up dual booting. ...
    (comp.os.linux.setup)
  • Re: root cant change permissions, owner
    ... The Debian package describes it as a "wrapper around su which will ... transfer your X credentials". ... used by suse and others not capable of utilizing pam ...
    (comp.os.linux.misc)