[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: Scripting scp
- From: Anthony Lawson <anthony semaphore com>
- To: "'redhat-list redhat com'" <redhat-list redhat com>
- Subject: RE: Scripting scp
- Date: Fri, 1 Sep 2000 14:54:15 -0700
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
anthony semaphore com
-----Original Message-----
From: Gene Wilburn [mailto:gwilburn home com]
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 -}{- gwilburn home com
http://www.NorthernJourney.com
-----------------------------------
_______________________________________________
Redhat-list mailing list
Redhat-list redhat com
https://listman.redhat.com/mailman/listinfo/redhat-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]