in reply to SSH Permission Denied

#!/usr/bin/perl use strict; use warnings; use Net::SSH::Perl; my $host = 'localhost'; my $pass = 'yourpassword'; my $user = 'yourusername'; my $cmd = 'pwd'; my $ssh = Net::SSH::Perl->new($host, protocol => '1,2', debug => 1); $ssh->login($user, $pass); my($stdout, $stderr, $exit) = $ssh->cmd($cmd); print $stdout, "\n";

Replies are listed 'Best First'.
Re^2: SSH Permission Denied
by Anonymous Monk on Jul 18, 2008 at 11:04 UTC
    wow! Great... It is working perfectly...