You can setup scp and ssh to connect/copy files without a password:
run "ssh-keygen". When it asks for a pass phrase just hit enter (blank
password). It will save two keys (identity and identity.pub) in ~/.ssh/
Copy the identity.pub key to the machine you will be copy files to in the
~/.ssh/ directory on the remote machine. Thats it. You should be able to
scp and ssh from that machine/user without a password.
I use something very similar to scp files via a script between our name
servers.
A n t h o n y L a w s o n
Systems/Networking Support - CCNA
Semaphore Corporation 206.905.5028
[EMAIL PROTECTED]
-----Original Message-----
From: Gene Wilburn [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 01, 2000 12:29 PM
To: Redhat Mailing List
Subject: Scripting scp
I'm trying to replace an existing Perl script that does auto-FTP with scp
(ssh1) instead. The script fetches log files from our ISP and we would
like to close the FTP port entirely.
The problem I'm having is the absence of a password option to feed
scp. I've got past this by having Perl write an Expect script then execute
that, but it seems a daft way to go... (I need the Perl script to do a
bunch of date and file renaming things).
Is there a better option?
Thanks,
Gene
-----------------------------------
Gene Wilburn -}{- [EMAIL PROTECTED]
http://www.NorthernJourney.com
-----------------------------------
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list