authorized_keys: No such file or directory

raylin

Active Member
Sep 9, 2001
26
0
301
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)
 

feanor

Well-Known Member
Aug 13, 2001
835
0
316
/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.
 

raylin

Active Member
Sep 9, 2001
26
0
301
Thanks feanor.

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

jumpdomain

Well-Known Member
Aug 12, 2001
109
0
316
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
 

rastoma

Well-Known Member
Aug 27, 2001
158
0
316
i have the same problem except i do have the .ssh folder but no authorized_keys file

how is this generated?
 

jumpdomain

Well-Known Member
Aug 12, 2001
109
0
316
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.