[TriLUG] how-to: preshare ssh key

Jason Watts jsnonzzr at gmail.com
Tue Jun 3 13:28:19 EDT 2008


here, try these steps.

Hope that helps.


In this example, I have two systems:

System A - my local system

System B - my remote systems

I need to set things up where System A can run remote commands on System B
without being prompted for a password. I am assuming I need to set this up
for the root user in this example.

Here are the steps:

Login to System A and run the following commands:

SystemA# sshkeygen -t dsa

Take all the defaults. DO NOT create a passphrase for your key.

SystemA# scp ~/.ssh/id_dsa.pub root at SystemB:~/.ssh/authorized_keys
if the path doesnt exist on system B, dont forget to create it.  also, once
you generate the key, you can use the key on system C D and G as well.




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
>



More information about the TriLUG mailing list