[TriLUG] how-to: preshare ssh key

Maarten Lippmann m.w.lippmann at gmail.com
Tue Jun 3 13:39:39 EDT 2008


I sent this a couple of minutes ago, but gmail gave me some error.
Ignore if double post, and I guess ignore otherwise too as the
question has already been answered :(

A trick would be the following: create a private-public key pair with
ssh-keygen.
If you want to run rsync without any authentication requests,
you'll have to create the private key without a password. (it will ask
you for one, just press return)
Put the private key in the ~/.ssh folder of the system that initiates
the rsync connection (the ssh client side), and add the public key to
the authorized_keys file in the ~/.ssh folder of the connection
receiving end. (the ssh server)
Now all ssh connections are free and without any prompts from the
private key system to the public one.
Be sure to set this up carefully, I am not responsible for any
security issues this might cause.


On Tue, Jun 3, 2008 at 1:15 PM, Warren Myers <volcimaster at gmail.com> wrote:
> I need to set up rsync between a pair of servers and want to use ssh to
> accomplish that.
>
> However, I don't want to be entering the passwords of those users
> constantly.
>
> How do I go about pre-sharing the server keys between the target and source
> machines?
>
> Or, is there a better way to do this than I have currently out-lined?
>
> WMM
>
> --
>
> Warren Myers
> http://warrenmyers.com
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG FAQ  : http://www.trilug.org/wiki/Frequently_Asked_Questions
>



-- 
Please avoid sending me Word or PowerPoint attachments.
Use plain text, HTML or PDF (adobe acrobat) in stead.
See http://www.gnu.org/philosophy/no-word-attachments.html



"Is 't noodlot, dat ick vall', van eere en staet berooft,
Laet vallen, als ick vall', met deze kroone op 't hooft,
Dien scepter in de vuist, dien eersleip van vertrouden,
En zoo veel duizenden als onze zyde houden.
Dat valle streckt tot eer, en onverwelckbren lof:
En liever d' eerste Vorst in eenigh laeger hof,
Dan in 't gezalight licht de tweede, of noch een minder
Zoo troost ick my de kans, en vrees nu leet noch hinder."



More information about the TriLUG mailing list