Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    646

    Default Trust Relationship f

    I'm trying to set up a slave server, but I'm not getting any of the zone data being transferred. I noticed an error when creating a trust relationship. Here's the output (I've masked the IPs below); any ideas?

    ------------------------------------------------------------------------------------------------
    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@xxx.xxx.xxx.xxx:/root/.sshscript
    root@xxx.xxx.xxx.xxx's password: Sending password


    stdin: is not a tty

    .sshscript 0% | | 0 --:-- ETA
    .sshscript 100% |*****************************| 415 00:00


    spawn /usr/bin/ssh root@xxx.xxx.xxx.xxx /bin/sh /root/.sshscript
    root@xxx.xxx.xxx.xxx's password:
    Script ok
    Copy Complete
    stdin: is not a tty
    /root/.sshscript: /root/.ssh/authorized_keys: No such file or directory
    Trust Relationship Created!
    ---------------------------------------------------------------

    Thanks,
    Jaz

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Aug 2001
    Posts
    445

    Default

    From /root, check for a .ssh directory. If there isn't one available, create it, then rerun the trust. It will then be able to write authorized_keys to that directory and populate things for you.
    Annette
    Hosting Matters, Inc.
    http://www.hostmatters.com

  3. #3
    Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    646

    Default

    It's there, and there is an entry for the IP of NS1 in the known_hosts file.

    Jaz

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Aug 2001
    Posts
    445

    Default

    Is that on the master box? Check the slave box - it will need that directory, as well. Within that directory, you can also

    touch authorized_keys

    if the directory exists but the file does not. We've had to do it both ways (create the directory -or- create the file) from time to time as various servers came online in order to get the trust set.
    Annette
    Hosting Matters, Inc.
    http://www.hostmatters.com

  5. #5
    Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    646

    Default

    That did it! Thanks. I just had to create the authroized_keys file and then the trust went through fine and synchronization works like a charm.

    What a pain in the *ss!

    Thanks again,
    Jaz

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Aug 2001
    Posts
    445

    Default

    No problem. Reporting this one has been on my list of things to do for awhile, but the behavior is not consistent enough to make a good report.
    Annette
    Hosting Matters, Inc.
    http://www.hostmatters.com

  7. #7
    Member
    Join Date
    Sep 2001
    Posts
    189

    Default

    I am receiving &Permission denied, please try again.& error

    and on master server:

    Sep 18 07:00:58 XXX sshd(pam_unix)[11010]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=XXX.XXXXXXX.net user=root

    How to fix it??
    Alex Andreyev,
    http://www.WHost.INFO - NEW web hosting directory.

Similar Threads & Tags
Similar threads

  1. trust relationship
    By serv_co_za in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-27-2005, 04:51 PM
  2. Trust Relationship
    By CRego3D in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-22-2004, 05:18 AM
  3. Remove Trust Relationship.
    By teerasak in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-07-2003, 11:51 PM
  4. Trust Relationship between 2 Server !
    By fusiondon in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-16-2003, 04:24 PM
  5. Trust Relationship Q
    By TheVoice in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-28-2002, 11:22 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube