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
You generate the key pair on the client (what you called the parent) and then copy the public portion to each server (what you called the child). Here is a quick Google that I think should help: http://itt.theintegrity.net/pmwiki.php?n=ITT.SSHKeyManagement alex> -----Original Message----- > From: centos-bounces at centos.org > [mailto:centos-bounces at centos.org] On Behalf Of bruce > Sent: Tuesday, September 19, 2006 9:37 AM > To: 'CentOS mailing list' > Subject: [CentOS] ssh key question > > > 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 at centos.org http://lists.centos.org/mailman/listinfo/centos >
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 at centos.org > http://lists.centos.org/mailman/listinfo/centosIf 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
On Tue, 2006-09-19 at 07:36 -0700, 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 >kk go to my site.. rivers-bend.com then the howto library...passwordless ssh...get you goin right now! john rose