Establish a Trust Relationship with a Primary Nameserver

plastic

Member
Sep 10, 2003
10
0
151
Hey,

I just got my 3th WHM/cPanel server.
One is a master nameserver that works fine, now, my new server I want that it becomes the ns2, so when I change, add or something, my ns records are on both servers the same.

Now, I tried true WHM from my new server (ns2) to establish a trust relationship with a Primary Namserver.

but when I do this I get the following:

Generating public/private rsa key pair.
/root/.ssh/id_rsa already exists.
Overwrite (y/n)? Generating public/private dsa key pair.
/root/.ssh/id_dsa already exists.
Overwrite (y/n)? spawn scp /root/.sshscript [email protected]:/root/.sshscript

[email protected]'s password: Sending Password


Permission denied, please try again.

I read on the cpanel forums it connects true ssh, now, root may not connect by default when using an ssh session.

Is there a way I still can do this? like a cron job that runs every day to pick up the values from ns1 and loads them into the ns2 ?

if so, how?
 

kiat

Active Member
Oct 11, 2001
31
0
306
I have exactly the same problem like you. After take hours to examine the CPanel script. I found that it tried to transfer file via ssh and required root login.

My system was not permit root login and this caused permission denied as you said.

Try edit your /etc/ssh/sshd_config from

PermitRootLogin no

to

PermitRootLogin yes

and try restart your sshd service by issue

service sshd restart

Hope this help.

Kiat.