Re: [CentOS] ssh key question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tuesday 19 September 2006 10:36, bruce wrote:
> hi...
>
> if i have a machine that i want to be able to automatically ssh into
> multiple child machines within the network, do i have to create a key for
> the parent machine, and supply the key to the child machines, or do i
> create a key for each child machine, and supply the keys to the parent?
>
> thanks
>
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos

If you want your main server to ssh to child servers, all you need is a key on 
the main server and than you share the .pub key ... and not the private key.

ssh-keygen -t dsa|rsa 
leave everything blank unless you want to encrypt the keys with a paraphrase 
and start to use ssh-agent 

Than put the public key in /home/user/.ssh/authorized_keys2 on each child and 
you should be pretty much all set.

manually connect at least once to make sure it all works like you intended to 
as a crontab script might take a while before it types in the " yes " or even 
worse a password !


later,
Charles

-- 
Charles Lacroix, Administrateur UNIX.
Service des télécommunications et des technologies
Cégep de Sainte-Foy
(418) 659-6600 # 4266
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux