APM: scp with perl
Chris Vaughan
vaughan99 at yahoo.com
Fri Jul 23 10:03:38 CDT 2004
Don't forget, you can also drive scp using Net::SCP from CPAN.
Regards,
Chris
--- Joel Holder <jholder at networklogistic.com> wrote:
> Try this:
>
> #>cd ~
> #>ssh-keygen -t dsa
> #>scp .ssh/id_dsa.pub remotehost:.ssh/authorized_keys
> #>ssh remotehost
>
> Then use perl to control scp. Enjoy..
>
> -----Original Message-----
> From: austin-bounces at mail.pm.org
> [mailto:austin-bounces at mail.pm.org] On
> Behalf Of erik at debill.org
> Sent: Friday, July 23, 2004 9:30 AM
> To: Moon, John
> Cc: austin at mail.pm.org
> Subject: Re: APM: scp with perl
>
> On Fri, Jul 23, 2004 at 09:45:49AM -0400, Moon, John wrote:
> > I have tried to use system(" scp ... ") but keep getting a
> request for
> a
> > password.
>
> I use this pretty routinely. If you're getting a request for
> password
> you haven't set up your rhostsrsa authentication properly. I
> can't
> really think of a better way to transfer files around
> automatically
> (unless it's rsync over ssh).
>
>
> Erik
>
> --
> Well I'm walking through the sand
> In the desert of my mind
> And I don't remember what it was
> That I came here to find
> -- Sister Machine Gun "Alone"
> _______________________________________________
> Austin mailing list
> Austin at mail.pm.org
> http://mail.pm.org/mailman/listinfo/austin
>
>
>
> _______________________________________________
> Austin mailing list
> Austin at mail.pm.org
> http://mail.pm.org/mailman/listinfo/austin
>
=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Chris Vaughan | "I love deadlines. I like the
| swooshing sound as they fly by."
vaughan99 at yahoo.com | - Douglas Adams
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
More information about the Austin
mailing list