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.

authorized_keys: No such file or directory

Discussion in 'General Discussion' started by raylin, Jan 30, 2002.

  1. raylin

    raylin Active Member

    Joined:
    Sep 9, 2001
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    I tried to Establish A Trust Relationship With a Primary Nameserver within WHM, but got error message :
    [quote:3575f725ed]
    stdin: is not a tty
    Script ok
    Copy Complete
    /root/.sshscript: /root/.ssh/authorized_keys: No such file or directory
    Trust Relationship Created!
    [/quote:3575f725ed]

    And I found there was no .ssh directory and no file named \"authorized_keys\" , of course, under /root directory of Primary NameServer.

    Then, tried to Synchronize DNS Records With Primary Nameserver , got error message:
    [quote:3575f725ed]
    Rebuilding DNS Zones List from master server .....
    You have no controlling tty. Cannot read passphrase.
    ndc: get key definition: not found
    Rebuild Complete
    [/quote:3575f725ed]

    Should I run any fixscript to re-generate this authorized_keys file ? And how ?

    Thanks for your help in advance.

    (I use RedHat 7.2)
     
  2. feanor

    feanor Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    836
    Likes Received:
    0
    Trophy Points:
    16
    /scripts/fixndc syncs up the keys if you use the distro of bind that comes w/ cpanel... as far as I have known.

    in a trust relationship though there might be some steps further to take, however- I am not aware of them.
     
  3. raylin

    raylin Active Member

    Joined:
    Sep 9, 2001
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Thanks feanor.

    I have tried /scripts/fixndc.
    It displays named.conf is already fixed.
     
  4. jumpdomain

    jumpdomain Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    I guess you could run this command to create the .ssh folder and some of the file if it is erroring out since there was no .ssh folder to start with:
    ssh-keygen
     
  5. rastoma

    rastoma Well-Known Member

    Joined:
    Aug 27, 2001
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    i have the same problem except i do have the .ssh folder but no authorized_keys file

    how is this generated?
     
  6. jumpdomain

    jumpdomain Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    You can just create this file like any other file (touch, pico...). Then move the contents of the identity.pub on the secondary name server to it to create the trust relationship.
     
Loading...

Share This Page