Merchlewitz has asked for the wisdom of the Perl Monks concerning the following question:
I am receiving the following when trying to SCP a file from a (local) host to a remote host.. it's very odd because the file transfers with no issue even though the error appears...
scp timed out while trying to connect to HOSTNAMEHERE at test.pl line 37
Here is my code snippet, all variables are defined correctly above in the script, I am also able to ssh and scp manually with no errors..
sub scp_stdby_config { my $scpe = Net::SCP::Expect->new; $scpe->login("oracle", "$o_ps"); $scpe->scp("/amp/oracle/cmerch1/test.txt", "$s_node_1:/amp/dep +ot/upgrade/transient/autoupgrade/configfiles/"); } scp_stdby_config();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Issues with Net::SCP::Expect
by haukex (Archbishop) on Dec 03, 2019 at 18:21 UTC | |
by Merchlewitz (Novice) on Dec 06, 2019 at 14:48 UTC | |
|
Re: Issues with Net::SCP::Expect
by Merchlewitz (Novice) on Dec 03, 2019 at 17:44 UTC | |
by nikster (Novice) on Dec 03, 2019 at 20:35 UTC | |
by haukex (Archbishop) on Dec 03, 2019 at 21:03 UTC |