The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Establish a Trust Relationship with a Primary Nameserver

Discussion in 'Bind / DNS / Nameserver Issues' started by plastic, Nov 18, 2003.

  1. plastic

    plastic Member

    Joined:
    Sep 10, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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 root@xx.xxx.xx.xxx:/root/.sshscript

    root@xx.xxx.xx.xxx'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?
     
  2. plastic

    plastic Member

    Joined:
    Sep 10, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    really no one with the same problem or a sollution? :confused:
     
  3. kiat

    kiat Active Member

    Joined:
    Oct 11, 2001
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
Loading...
Similar Threads - Establish Trust Relationship
  1. wintech2003
    Replies:
    3
    Views:
    354

Share This Page