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

Net::SCP RSA passwords on ActiveState

by diskcrash (Hermit)
on Mar 27, 2006 at 03:05 UTC ( #539356=perlquestion: print w/replies, xml ) Need Help??
diskcrash has asked for the wisdom of the Perl Monks concerning the following question:

Wise Monks,

For testing purposes I am using ActiveState Perl on WindowsXP for secure file transfers. I have downloaded the Net::SCP module with ppm and would like to use it non-interactively to grab short status files from an FC4 Linux system. The script doc advises the installation of a public key, generated by ssh-keygen from the remote system. What I have not been able to determine is where the public key should be stored on the XP system for Net::SCP to locate and use it. Looking at the SCP and SSH .pm files didn't provide a clue. Most goo-guidance is for Linux usage and doesn't map to XP. I try the script and get no errors and no files transferred, when the public key file is in the local directory. Any advice would be most appreciated.

David Drake

Replies are listed 'Best First'.
Re: Net::SCP RSA passwords on ActiveState
by idsfa (Vicar) on Mar 27, 2006 at 06:31 UTC

    The Net::SCP module depends upon you having one or another or yet another implementation of scp already installed on your system. Since each of those (and any other options that might exist) use a different convention as to where they store their key files, it will be hard to help you without knowing which tool you are using.

    If you do not yet have a version of scp installed, I would recommend CygWin (since it is free and ends up looking pretty linux-y). If you do that, don't install or use their version of perl.

    Alternately, you could use Net::SSH::Perl and do it purely in perl. The pscp script that comes with it should get you started ...

    The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://539356]
Approved by perl_lover
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2018-03-22 10:20 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (273 votes). Check out past polls.