----- Original Message -----

From: Shlomi Fish <shlo...@shlomifish.org>
To: Rajeev Prasad <rp.ne...@yahoo.com>
Cc: perl list <beginners@perl.org>
Sent: Thursday, June 28, 2012 12:46 PM
Subject: Re: net::openssh error in CGI: Invalid or bad combination of options 
('key_path')

Hi Rajeev,

On Thu, 28 Jun 2012 10:00:08 -0700 (PDT)
Rajeev Prasad <rp.ne...@yahoo.com> wrote:

> hello can anyone help?
> 
> following is failing:
> 
> my $ssh = Net::OpenSSH->new($host,
>         user => "abc123",
>         ctl_dir => "/home/openssh_lib_home",
>         key_path => "/home/openssh_lib_home/.ssh/",
>         master_opts => [-o => 'StrictHostKeyChecking=no',
>                         -o => 'ConnectTimeout 60'],
>         );

key_path should point to the file of the private key on the disk - not its
containing directory.

Regards,

    Shlomi Fish

> 
> getting error:    Invalid or bad combination of options ('key_path')
> 
> 
> folder permissions are:
> 
> drwxrwsr-x  3 www-data www-data 4096 2012-06-28 16:24 /home/openssh_lib_home
> 
> 
> drwxr-sr-x 2 www-data www-data 4096 2012-06-28 16:24 
> /home/openssh_lib_home/.ssh
> 
> -rw------- 1 www-data www-data 1679 2012-06-27 21:30 
> /home/openssh_lib_home/.ssh/id_rsa
> -rw-r--r-- 1 www-data www-data  395 2012-06-28 16:24 
> /home/openssh_lib_home/.ssh/id_rsa.pub
> 



-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
My Favourite FOSS - http://www.shlomifish.org/open-source/favourite/

Every successful open source project will eventually spawn a sub‐project.

Please reply to list if it's a mailing list post - http://shlom.in/reply .






hello Shlomi,

howdy

I made the change, but it still gives same error.

 my $ssh = Net::OpenSSH->new($host,
         user => "abc123",
         ctl_dir => "/home/openssh_lib_home",
         key_path => "/home/openssh_lib_home/.ssh/id_rsa",
         master_opts => [-o => 'StrictHostKeyChecking=no',
                         -o => 'ConnectTimeout 60'],
         );


It works with username password supplied. but i suspect some internal 
issue as i can see in error logs - when i run it with userid/passwd and 
ctl_dir options, it still tries to access/save ssh info in /var/www.ssh 
!!! that however does not stop the ssh from being happening.


key_path options still dont work :(

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to