APM: scp with perl
Joel Holder
jholder at networklogistic.com
Fri Jul 23 09:42:22 CDT 2004
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
More information about the Austin
mailing list