wardmw has asked for the wisdom of the Perl Monks concerning the following question:
I need 'strict_mode => 0' due to permissions set on the higher-level directories, however I always get the same error whether I use 0 or 1:#!/usr/local/bin/perl use Net::OpenSSH; my $remoteserver='nms4'; my $remoteuser='tftp'; my $ssh = Net::OpenSSH->new('$remotehost', user => '$remoteuser', stri +ct_mode => 0);
The permissions on .libnet-openssh-perl are set to 0700 and that directory is owned by the user running the script:Couldn't establish SSH connection: ctl_dir /home/tftp/.libnet-openssh- +perl/ is not secure at /usr/local/bin/engsql01_backup line 36
drwx------ 2 tftp nobody 512 Jun 29 14:15 /home/tftp/.libn +et-openssh-perl
Can anyone give me a pointer in the right direction on how to fix this?
|\/|artin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::OpenSSH, strict_mode parameter not working
by jethro (Monsignor) on Jun 29, 2009 at 15:16 UTC | |
|
Re: Net::OpenSSH, strict_mode parameter not working
by salva (Canon) on Jun 29, 2009 at 15:47 UTC | |
by Anonymous Monk on Jun 29, 2009 at 16:24 UTC | |
by wardmw (Acolyte) on Jul 04, 2009 at 07:07 UTC | |
by quicktutoriel (Initiate) on Aug 16, 2011 at 13:56 UTC | |
by salva (Canon) on Aug 16, 2011 at 16:07 UTC | |
by Anonymous Monk on Jun 26, 2014 at 14:54 UTC |