相关疑难解决方法(0)

通过代理后面的ssh git push heroku master出错

简要背景:
嗨,我是一名大学生(代理10.3.100.211:8080之后),ROR,Git和Heroku的新手,并且一直关注Ruby on Rails教程.我解决了在我的〜/ .ssh/config文件中使用以下配置通过ssh推送git repo的问题(之后它完美地工作):

Host github.com  
Hostname ssh.github.com  
User git  
ProxyCommand corkscrew 10.3.100.211 8080 %h %p  
Port 443  
Run Code Online (Sandbox Code Playgroud)

问题:

但是,在https://devcenter.heroku.com/articles/git上使用heroku进行在线应用程序部署时,我收到以下错误:

$git push heroku master
ssh: connect to host heroku.com port 22: Connection refused  
fatal: The remote end hung up unexpectedly  
Run Code Online (Sandbox Code Playgroud)

我目前的状态是:$ git remote -v

heroku  git@heroku.com:deep-dusk-1030.git (fetch)  
heroku  git@heroku.com:deep-dusk-1030.git (push)  
origin  git@github.com:shaileshgupta/testapp.git (fetch)  
origin  git@github.com:shaileshgupta/testapp.git (push)  
Run Code Online (Sandbox Code Playgroud)

任何人都可以通过github.com帮助我将heroku.com的设置写入我的〜/ .ssh/config文件,以便通过使用PORT 443/22的代理后面的ssh进行无缝连接.

任何帮助将受到高度赞赏.

更新(更多信息) 我尝试了以下设置并遇到以下错误:

组态:

Host heroku.com  
  Hostname ssh.heroku.com  
  User git  
  ProxyCommand corkscrew 10.3.100.211 8080 %h %p  
  Port …
Run Code Online (Sandbox Code Playgroud)

git heroku

11
推荐指数
1
解决办法
4886
查看次数

通过代理服务器推送到heroku

我已经安装了Heroku并设置了一个帐户,但由于我大学的代理,我无法将我的应用程序的代码推送到它上面.

我尝试使用线程中给出的解决方案,我读了这个页面关于让github通过代理工作,但我仍然得到一个错误,即:

$git push heroku origin
ssh_exchange_identification: Connection closed by remote host
fatal: The remote end hung up unexpectedly

$git remote -v
heroku  git_heroku:secret-hamlet-7718.git (fetch)
heroku  git_heroku:secret-hamlet-7718.git (push)
origin  https://github.com/saasbook/hw2_rottenpotatoes.git (fetch)
origin  https://github.com/saasbook/hw2_rottenpotatoes.git (push)
Run Code Online (Sandbox Code Playgroud)

我的.ssh/config文件包含:

ProxyCommand corkscrew [proxy_address] [proxy_port] %h %p

Host git_heroku
  Hostname heroku.com
  User git
  Port 443
Run Code Online (Sandbox Code Playgroud)

.git/config文件的相关部分:

[remote "heroku"]
    url = git_heroku:secret-hamlet-7718.git
    fetch = +refs/heads/*:refs/remotes/heroku/*
Run Code Online (Sandbox Code Playgroud)

我很确定我错过了一些东西.我希望有人可以指出什么.

git heroku

7
推荐指数
1
解决办法
1046
查看次数

ssh:连接到主机heroku.com端口22:连接超时

我正在研究Ubuntu 11.10我的git-repo的本地分支是最新的

然后我在终端中编写了以下命令:heroku create --stack cedar并且它说:
注意:在6月20日星期三,我们的默认堆栈将更改为Cedar.http://bit.ly/Lh0rM5

创建radiant-wind-7413 ...完成,堆栈是雪松
http://radiant-wind-7413.herokuapp.com/ | git@heroku.com:radiant-wind-7413.git
Git远程heroku添加

一切都很好,直到现在,我在终端输入以下内容:

git push heroku master
Run Code Online (Sandbox Code Playgroud)

并发生以下错误: ssh:连接到主机heroku.com端口22:连接超时
致命:远程端意外挂断

connection timed heroku out connect

4
推荐指数
4
解决办法
1万
查看次数

标签 统计

heroku ×3

git ×2

connect ×1

connection ×1

out ×1

timed ×1