ssh autologin immer Permission denied...



  • #!/usr/bin/perl
    
    use Net::SSH::Perl;
    
    $host = "192.168.0.103";
    $user = "xxx";
    $passwd = "xxx";
    
    my $ssh = Net::SSH::Perl->new($host);
    $ssh->login($user, $passwd);
    $ssh->cmd("who");
    

    ich bekomme immer:
    Permission denied at ./autologin.pl line 10
    obwohl password, user richtig sind...und kann auch via putty connecten!

    cu



  • habs nun so probiert:
    my ssh=Net::SSH::Perl>new(ssh = Net::SSH::Perl->new(host, port => 3314);

    ->
    Can't connect to rftplinux.homelinux.org, port 3314: Connection refused at /usr/lib/perl5/vendor_perl/5.8.6/Net/SSH/Perl.pm line 206.
    cplusplus rftplinux.homelinux.org v

    mit commandline klappts...
    ssh xxxxx 3314

    cu


Anmelden zum Antworten