简体   繁体   English

OS X Server + GIT与SSH的集成失败,出现权限被拒绝的错误

[英]OS X Server + GIT integration with SSH Fails with Permission Denied Error

I have GIT server hosted on separate Linux server. 我的GIT服务器托管在单独的Linux服务器上。 I have SSH RSA keys without password . 我有没有密码的 SSH RSA密钥。

I am able to connect to GIT Server with Xcode and all operations are working properly in Source Control through Xcode 5.0.2. 我可以使用Xcode连接到GIT服务器,并且所有操作都可以通过Xcode 5.0.2在Source Control中正常工作。

I have OS X Server install in my local machine. 我在本地计算机上安装了OS X Server。 Following is my OS X Server setup configuration: 以下是我的OS X Server设置配置:

  1. Added the Remote Repository as : ssh://myuser@XXXXXXX.XXXX.com:22/iphone_project 将远程存储库添加为:ssh://myuser@XXXXXXX.XXXX.com:22 / iphone_project
  2. I had make sure that my public is correct in OS X Server for SSH. 我已经确保我的public在SSH的OS X Server中是正确的。 I had copy paste SSH pub key from /.ssh/id_rsa.pub to OS X Server. 我已经将SSH发布密钥从/.ssh/id_rsa.pub复制粘贴到OS X Server。

.

Cloning into 'ssh_XXXX_XXXX_XXX_com_22_mtp_iphone'...
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 XXXXXX.XXXXXX.com [172.20.10.65] port 22.
debug1: Connection established.
Could not create directory '/var/teamsserver/.ssh'.
debug1: identity file /Library/Server/Xcode/Data/BotRuns/BotRun-92b17427-aac4-40fa-92fa-5c73384b7d0f.bundle/credentials/b5964671-8db0-482c-93ee-870a0243295d/id_rsa type 1
debug1: identity file /Library/Server/Xcode/Data/BotRuns/BotRun-92b17427-aac4-40fa-92fa-5c73384b7d0f.bundle/credentials/b5964671-8db0-482c-93ee-870a0243295d/id_rsa-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_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH_5*
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 26:70:37:3a:56:bd:17:bd:9d:6a:14:c0:21:23:65:1c
debug1: Host 'XXXXXX.XXXX.com' is known and matches the RSA host key.
debug1: Found key in /Library/Server/Xcode/Config/ssh_known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1:  Miscellaneous failure (see text)
No credentials cache file found

debug1:  An invalid name was supplied
unknown mech-code 0 for mech 1 2 752 43 14 2

debug1:  Miscellaneous failure (see text)
unknown mech-code 0 for mech 1 3 6 1 5 5 14

debug1:  Miscellaneous failure (see text)
unknown mech-code 2 for mech 1 3 6 1 4 1 311 2 2 10

debug1:  An unsupported mechanism was requested
unknown mech-code 0 for mech 1 3 5 1 5 2 7

debug1:  Miscellaneous failure (see text)
unknown mech-code 0 for mech 1 3 6 1 5 2 5

debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Library/Server/Xcode/Data/BotRuns/BotRun-92b17427-aac4-40fa-92fa-5c73384b7d0f.bundle/credentials/b5964671-8db0-482c-93ee-870a0243295d/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: Device not configured
debug1: permanently_drop_suid: 94
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
Permission denied, please try again.
debug1: read_passphrase: can't open /dev/tty: Device not configured
debug1: permanently_drop_suid: 94
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
Permission denied, please try again.
debug1: read_passphrase: can't open /dev/tty: Device not configured
debug1: permanently_drop_suid: 94
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
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_hosts
SSH strict host checking is disabled (you can enable this by editing the SSHStrictHostKeyChecking key in /Library/Server/Xcode/Config/xcsbuildd.plist
Untrusted HTTPS certificates is disabled (you can enable this by editing the TrustSelfSignedSSLCertificates key in /Library/Server/Xcode/Config/xcsbuildd.plist

My Question is: Why my authentication is still failing after all configuration setup? 我的问题是:为什么在所有配置设置后我的身份验证仍然失败?

Are there any missing point in set up of GIT or OS X SERVER? 在设置GIT或O​​S X SERVER时是否有任何遗漏之处?

Make sure of the exact account which make the ssh command: 确保使用ssh命令的确切帐户:

Its $HOME/.ssh must have id_rsa.pub , and id_rsa (public and private key). $HOME/.ssh必须具有id_rsa.pub id_rsa (公钥私钥)。

Make sure the permission of the .ssh folder and its files is correct, as described in " Git SSH authentication " . 确保.ssh文件夹及其文件的权限正确,如“ Git SSH身份验证 ”中所述。
With EGit, those folder are referenced and declared in " Eclipse SSH Configuration ": 使用EGit,可以在“ Eclipse SSH Configuration ”中引用和声明这些文件夹:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将服务器添加到团队中后,OS X Server持续集成错误 - OS X Server continuous integration error with adding server to the team OS X Server持续集成ipa分发 - OS X Server Continuous Integration ipa distribution OS \\ Cordova权限错误&gt;“错误:EACCES:权限被拒绝,scandir” - OS\Cordova Permissions Error > “Error: EACCES: permission denied, scandir” 无法创建数据报套接字(操作系统错误:权限被拒绝,errno = 13 - Failed to create datagram socket (OS Error: Permission denied, errno = 13 Xcode Server持续集成和可可豆发出Pods-resources.sh:权限被拒绝 - Xcode Server continuous integration and cocoa pods issue Pods-resources.sh: Permission denied OS X 3.2.1 CI“待定集成” - OS X 3.2.1 CI “pending integration” Google自然语言API权限被拒绝错误 - Google Natural Language API permission denied error 在管理器 loadFromPreferencesWithCompletionHandler 上获取权限被拒绝错误 - Getting Permission Denied error on manager loadFromPreferencesWithCompletionHandler React Native Ios 错误:权限被拒绝,mkdir - React Native Ios Error: permission denied , mkdir 无法在Xcode中创建目录权限被拒绝的错误 - Unable To Create Directory Permission Denied Error In Xcode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM