[TriLUG] SSH Memory

Michael Thompson thompson at easternrad.com
Tue Dec 10 14:01:05 EST 2002

I have done this using rsync over ssh and using rsa keys with no
passphrase (I believe you can use sshagent if you would rather have
passphrases on your key)

the command I'm using is:

rsync -va --delete -e /usr/bin/ssh username at hostname:/home /backupdir

This syncs the /home dir of the machine to be backed up with /backupdir
on the local backup server.

Here is how I set up my RSA keys.  (with no passphrase, not as secure
but fine for me as long as my private key stays safe..)

This assumes that ssh is installed and configured on both clients and

On the client machine:
Use ssh-keygen -t rsa to create a private and public key pair, do not
insert a password. If you use the default settings, use will end up with
two files: $HOME/.ssh/id_rsa and $HOME/.ssh/id_rsa.pub. (Note: $HOME =
your home directory.) The id_rsa file should be chmod 600, the
id_rsa.pub can be 644. Also note that the $HOME/.ssh directory should be
chmod 600 on both clients and servers otherwise rsa authentication will
not work.

On the server machine:
Copy the id_rsa.pub file to the $HOME/.ssh directory and insert it into
a file called $HOME/.ssh/authorized_keys. You can use 'cat id_rsa.pub >>
authorized_keys' to do this. The authorized_keys file should be chmod

If you created your rsa key without a pass phrase this should allow you
to ssh to the server without a password. 

Hope this is accurate and helps.  If anyone sees a problem with this,
let me know so I can fix my own docs.  (I cut and pasted this from my
'cheat' sheet...)



On Tue, 2002-12-10 at 13:35, John Warf wrote:
> I am trying to set up some automated backups from one computer to another.
> I have to move the data securely.  I know there is a way to do this but I am
> not quite sure how to do it the way I want to.  I would like to scp the data
> from one machine to the other.  I don't want to type in the password b/c I
> would like to make the whole thing a cron job.  I know there is a way to
> make the computer remember passwords for certain users can any one be of any
> assistance.
> Thanks
> John
> _______________________________________________
> TriLUG mailing list
>     http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
>     http://www.trilug.org/~lovelace/faq/TriLUG-faq.html

More information about the TriLUG mailing list