SSH://1.2.3.4:PORT /路径/到/ repo.git
…填写用户名和密码.
然后我在Xcode中添加了机器人,但是当我打入集成时,会失败与日志:
cloning into ‘ssh_myusername_1_2_3_4_PORT_path_to_repo_git’…
OpenSSH_6.2p2,OSSLShim 0.9.8r 8 Dec 2011 deBUG1: Reading
configuration data /etc/ssh_config deBUG1: /etc/ssh_config line 20:
Applying options for * deBUG1: Connecting to 1.2.3.4 [1.2.3.4] port PORT.
deBUG1: Connection established.
Could not create directory ‘/var/teamsserver/.ssh’.
deBUG1: IDentity file /var/teamsserver/.ssh/ID_rsa type -1
deBUG1: IDentity file /var/teamsserver/.ssh/ID_rsa-cert type -1
deBUG1: IDentity file /var/teamsserver/.ssh/ID_dsa type -1
deBUG1: IDentity file /var/teamsserver/.ssh/ID_dsa-cert type -1
deBUG1: Enabling compatibility mode for protocol 2.0
deBUG1: Local version string SSH-2.0-OpenSSH_6.2
deBUG1: Remote protocol version 2.0,remote software version OpenSSH_6.0p1 Debian-3ubuntu1
deBUG1: match: OpenSSH_6.0p1 Debian-3ubuntu1 pat OpenSSH*
deBUG1: SSH2_MSG_KEXINIT sent
deBUG1: SSH2_MSG_KEXINIT received
deBUG1: kex: server->clIEnt aes128-ctr hmac-md5 none
deBUG1: kex: clIEnt->server aes128-ctr hmac-md5 none
deBUG1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
deBUG1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
deBUG1: SSH2_MSG_KEX_DH_GEX_INIT sent
deBUG1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
deBUG1: Server host key: RSA b6:b8:0e:e4:25:63:6d:64:a3:d6:6d:7f:46:85:72:0d
deBUG1: checking without port IDentifIEr No RSA host key is kNown for [1.2.3.4]:PORT
and you have requested strict checking. Host key verification Failed.fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository
exists.SSH KNown Hosts file path is located at
/library/Server/Xcode/Config/ssh_kNown_hostsSSH strict host checking
is enabled (you can disable this by editing theSSHStrictHostKeyChecking key in
/library/Server/Xcode/Config/xcsbuildd.pListUntrusted httpS
certificates is Disabled (you can enable this by editing theTrustSelfSignedSSLCertificates key in
/library/Server/Xcode/Config/xcsbuildd.pList
我假设有一个权限问题,但是在我的/ var中有一些具有不同权限的目录,当然没有服务器文件夹…
所以我不知道如何设置适当的权限(不改变/ var …的其他子目录的权限).我可以尝试手动创建目录“小组服务器”,但不知道有什么权限?你有什么想法吗
编辑:为了测试目的,我已经创建了777个teamserver目录,但这并不能解决我的问题.日志看起来与以前的butjust WITHOUT行相同:
Could not create directory ‘/var/teamsserver/.ssh’.
有任何想法吗?
谢谢
解决方法 当尝试针对由ssh密钥对保护的github repo运行git命令时,我遇到了与方案动作构建脚本类似的问题.Bots使用_teamsserver系统帐户运行构建.如您所见,默认情况下,这些帐户没有主目录.要设置访问和修改其主目录的构建,我已经取得了以下成功(您的里程可能会有所不同):
sudo mkdir /var/teamsserversudo chown -R _teamsserver:_teamsserver /var/teamsserver/sudo chmod -R 770 /var/teamsserver/
HTH
总结以上是内存溢出为你收集整理的osx – 无法创建目录/ var / teamsserver全部内容,希望文章能够帮你解决osx – 无法创建目录/ var / teamsserver所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)