Heroku ssh port

6 views
Skip to first unread message

L V Lammert

unread,
Jul 29, 2014, 11:51:20 AM7/29/14
to stl...@googlegroups.com
Could someone point me to docs showing how to specify the ssh port when using the heroku CLI/git? Can't seem to find anything that shows options.

    Thanks!

    Lee

Anthony F

unread,
Jul 29, 2014, 11:58:15 AM7/29/14
to stl...@googlegroups.com
Heroku will only let you push to 22; there is a plugin that will let you push via http though: https://github.com/ddollar/heroku-push.  Unless I am misunderstanding the question...


--
You received this message because you are subscribed to the Google Groups "Saint Louis Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stlruby+u...@googlegroups.com.
To post to this group, send email to stl...@googlegroups.com.
Visit this group at http://groups.google.com/group/stlruby.
For more options, visit https://groups.google.com/d/optout.

L V Lammert

unread,
Jul 29, 2014, 6:49:42 PM7/29/14
to stl...@googlegroups.com
Update:

Set the remote ssh port in git config, yet it still is pulling the wrong ssh port from the system config:

...
remote.heroku.fetch=+refs/heads/*:refs/remotes/heroku/*
remote.heroku.port=22

lvl@storm:
$ git fetch heroku
ssh: connect to host heroku.com port 2206: Connection timed out

Also tried using the cli:

$ heroku clone <appname>
Cloning from app '<appname>'...
Cloning into '<appname>'...


Same result - cannot connect due to wrong ssh port. What is the correct way to specify the remote port?

    Thanks!

    Lee

Anthony F

unread,
Jul 29, 2014, 7:37:48 PM7/29/14
to stl...@googlegroups.com
In your .ssh/config file try adding:

Host myrepo
     User git
     Port 22 
     Hostname heroku.com
        

and in .git/config, change the heroku repo to:

[remote "heroku"]
        url = git@myrepo:appname.git
        fetch = +refs/heads/*:refs/remotes/heroku/*



--
Reply all
Reply to author
Forward
0 new messages