Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Problem with Net::SCP::Expect

by xorl (Deacon)
on Feb 23, 2009 at 15:54 UTC ( [id://745783]=note: print w/replies, xml ) Need Help??


in reply to Re: Problem with Net::SCP::Expect
in thread Problem with Net::SCP::Expect

The auto_quote thing didn't work :(

I'm on RHEL 3 and there isn't a libssh2 package for Net::SSH2

I'm trying Net::OpenSSH now. However it is complaining:

"ssh: illegal option -- M"

Any suggestions?

Replies are listed 'Best First'.
Re^3: Problem with Net::SCP::Expect
by salva (Canon) on Feb 23, 2009 at 16:55 UTC
    The auto_quote thing didn't work :(

    Try running the script with strace to see how it calls the scp program.

    I'm trying Net::OpenSSH now. However it is complaining: "ssh: illegal option -- M"

    That probably means that the version of OpenSSH installed on the machine is too old for Net::OpenSSH. It requires OpenSSH 4.1 or later (5.1 is recommended).

    update: BTW, could you use SFTP instead of SCP?

      I finally gave up and went with crafting the right scp command and using the system command to run it. Probably not the right thing to do, but it is working. If someone gives me a good reason why this is a horrible plan, I'll give SFTP a try. Update: Yes I had to set the boxes up to scp without a password.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://745783]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-24 14:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found