Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 10-10-2004, 06:49 PM   #1
LQ Newbie
Registered: Dec 2001
Distribution: Whitebox
Posts: 1

Rep: Reputation: 0
unattended, *secure* ssh backups

Here's my situation. I want to be able to periodically send a copy of a file on a remote hosted server (one over which I do not have control) to my personal server. I want to be able to do this unattended, and I don't want to leave my system open to either the owners of that server or anyone else that happens to get through its security.

What I prefer as a mechanism is a cron job that calls the script to create the file, then calls scp to transfer it, and then deletes the file.

How can I arrange it so that the file transfer portion of this setup will not require interaction (vis: a password or such) but not leave my local server open to access from the remote one other that for this one transfer?
Old 10-10-2004, 09:32 PM   #2
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Install this on your server (the one you control) and create a disposable user just for accepting transfered files. Make the shell for this disposable user "scponly". Now you can safely use scp or sftp from the remote server in a cron job using an identity file with no passphrase.

Of course, you must be very careful about how you handle the files that have been uploaded to your server because they could contain malicious data. You should do some kind of verification on the files before you use them in a trusted manner.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How Secure is SSH? AvatarofVirgo Linux - Security 8 08-14-2011 12:37 PM
secure connection without SSH Mr. DM Linux - General 3 05-17-2005 04:53 AM
How can I test if my SSH is secure nutthick Linux - Security 2 12-15-2004 10:59 AM
how to secure ssh chongluo Linux - Security 3 11-04-2004 07:16 AM
Unattended Taper Backups chrisk5527 Linux - Software 0 01-30-2003 04:14 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration