Home > Archive > PERL Beginners > March 2005 > Net::SSH::Perl error
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Net::SSH::Perl error
|
|
|
| Hi,
i have installed openssh for windows and am able to connect using ssh
client. Now, while trying out Net::SSH::Perl module i get an error at
my $sshh= Net::SSH::Perl->new($host);
Can't map service name 'ssh' to port number.
this is on windows OS and i have added these entires to <ssh
installation directory>\etc\services file
ssh 22/tcp
but it is not helping. any windows specific configuration??
thanks,
lohit
| |
| Felix Geerinckx 2005-03-29, 3:56 pm |
| On 29/03/2005, Lohit wrote:
> i have installed openssh for windows and am able to connect using ssh
> client. Now, while trying out Net::SSH::Perl module i get an error at
>
> my $sshh= Net::SSH::Perl->new($host);
>
> Can't map service name 'ssh' to port number.
>
What happens if you specify the port in your constructor directly:
my $sshh = Net::SSH::Perl->new($host, port => 22);
--
felix
|
|
|
|
|