How can I transfer a file using scp without a password from a Perl script? -


i writing perl script needs transfer files between computers using scp. know public key authentication, need script automated, can't visit machines set keys before script run.

is there way either pass password scp perl script or set keys within perl script?

this script run part of build script reimages hard drive need run script on. can't there set keys every time project built.

you use perl expect module, see an example @ house consultants' forum.

its documentation has telnet example changed ssh.

net::ssh::expect perl module want. haven't used 1 previously, though.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -