Xcode 上传错误:无法打开 ssh 会话。(16)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25169034/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode upload error: Failed to open ssh session. (16)
提问by staticVoidMan
NOTE:We finally uploaded the app but we didn't really troubleshoot this issue so I would appreciate if someone could share some valuable insight or experience pertaining to this question.
注意:我们最终上传了应用程序,但我们并没有真正解决这个问题,所以如果有人能分享一些与这个问题有关的宝贵见解或经验,我将不胜感激。
I've also checked the following 2 similar questions but these didn'thelp:
我还检查了以下 2 个类似的问题,但这些都没有帮助:
- Error uploading ios application to itunesconnect “failed to open ssh session (16)”
- App Store submission/distribution error “failed to open ssh session”
So...
所以...
Firstly, I am on a company network and just a week back we published a fresh new app using Max OSX 10.9.3 (13D65) & Xcode v5.1.1 (5B1008).
首先,我在公司网络上,就在一周前,我们使用 Max OSX 10.9.3 (13D65) 和 Xcode v5.1.1 (5B1008) 发布了一个全新的应用程序。
This week, while trying to upload an update for this app via the same system, I ran into a few issues.
本周,在尝试通过同一系统上传此应用程序的更新时,我遇到了一些问题。
1st try*firewalled
第一次尝试*防火墙
2nd/3rd try*firewalled
第二次/第三次尝试*防火墙
So, I got our network admin to open up port number 44001 and tried again.
Although it did reduce the number of errors, it failed again.
Thought we'd try from another system but same error.
所以,我让我们的网络管理员打开端口号 44001 并再次尝试。
虽然它确实减少了错误的数量,但它再次失败了。
以为我们会从另一个系统尝试,但同样的错误。
4th try*firewalled
第四次尝试*防火墙
NOTE: No changes in network or system
注意:网络或系统没有变化
5th try*firewall bypassed
第 5 次尝试*绕过防火墙
So, I got our network admin to look into it and eventually we ended up bypassing the company firewall just for this upload session but it failed again.
所以,我让我们的网络管理员调查它,最终我们最终绕过了公司防火墙,只是为了这个上传会话,但它又失败了。
6th try*firewalled
第 6 次尝试*防火墙
Thought we'd try from another system again so I switched to a colleague's system that hadn't been involved in this app's development, note that it was notbypassing the firewall, and it uploaded successfully in it's 1st attempt, albeit with a few warnings.
以为我们会再次尝试从另一个系统尝试,所以我切换到一个没有参与此应用程序开发的同事的系统,请注意它没有绕过防火墙,并且在第一次尝试中成功上传,尽管有一些警告.
- System was a Mac OSX 10.9.3 that we later realized had an older version of Xcode (5.0) but anyways...
- 系统是 Mac OSX 10.9.3,我们后来意识到它有一个旧版本的 Xcode (5.0) 但无论如何......
Would someone be kind enough to shed some light or hints for the following errors/warnings:
有人愿意为以下错误/警告提供一些线索或提示吗:
- Error:
Failed to open ssh session. (16)
(NOTE: this appeared with/without firewall/restrictions) - Error:
Could NOT set the remote path to the existing package
- Error:
Could not create/set the package's folder on Apple's webDAV
Warning:Creating a new Signiant Transfer Engine
- 错误:
Failed to open ssh session. (16)
(注意:这似乎与/不带防火墙/限制) - 错误:
Could NOT set the remote path to the existing package
- 错误:
Could not create/set the package's folder on Apple's webDAV
警告:Creating a new Signiant Transfer Engine
回答by kernix
After having the same issue I've been able to fix this issue.
在遇到同样的问题后,我已经能够解决这个问题。
To solve this issue you need to:
要解决此问题,您需要:
Go to page 6 "System and Network Requirements" from https://itunesconnect.apple.com/docs/UsingApplicationLoader.pdf
verify that all of the ports and IP addresses are accessible.
从https://itunesconnect.apple.com/docs/UsingApplicationLoader.pdf转到第 6 页“系统和网络要求”
验证所有端口和 IP 地址是否均可访问。
After opening all of the ports from the table, I'm now able to upload my apps.
打开表中的所有端口后,我现在可以上传我的应用程序。
Enjoy!
享受!
回答by Sérgio
I had the same problem when using my company's network because we use a proxy and due to security reasons all the needed ports and IPs reported on the official documentationwere blocked. After switching to an external network without proxies, I was able to upload my new app.
我在使用我公司的网络时遇到了同样的问题,因为我们使用了代理,并且出于安全原因,官方文档中报告的所有需要的端口和 IP都被阻止了。在没有代理的情况下切换到外部网络后,我能够上传我的新应用程序。