Could not create directory /var/teamsserver

前端 未结 4 859
春和景丽
春和景丽 2021-02-06 01:20

I\'ve installed os x server (Mavericks) on my mac and would like to add bot. For some reasons my remote repo is located on other external server and I have access to it by usern

4条回答
  •  醉话见心
    2021-02-06 02:25

    Ok, I took some time but I've a solution... Two solutions actually. Ashamed to admit but read and understand logs is enough to solve the problem (again :P).

    FIRST ANSWER:

    My server host key was added to .ssh/known_hosts BEFORE installing os x server. Server does't use that path of known hosts. As log says server uses:

    SSH Known Hosts file path is located at /Library/Server/Xcode/Config/ssh_known_hosts

    and that file was empty in my case. So to solve the problem it is enough to copy known_hosts to ssh_known_hosts:

    sudo cp ~/.ssh/known_hosts /Library/Server/Xcode/Config/ssh_known_hosts
    

    It's that simple.

    SECOND ANSWER:

    Acording to log again

    SSH strict host checking is enabled (you can disable this by editing the SSHStrictHostKeyChecking key in /Library/Server/Xcode/Config/xcsbuildd.plist

    Change SSHStrictHostKeyChecking to false.

    It's done again.

提交回复
热议问题