Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote ssh with different port number #29

Open
crisward opened this issue Feb 13, 2017 · 2 comments
Open

remote ssh with different port number #29

crisward opened this issue Feb 13, 2017 · 2 comments

Comments

@crisward
Copy link

I'm struggling to get deploy keys / hostkeys to work.

My remote git server has a non-standard port number.

Has anyone had any luck setting this up?

I've tried

sudo ssh-keyscan -p1234 git.myrepo.com >>  /home/dokku/.hostkeys/shared/.ssh/known_hosts 

Not sure if this is an issue with deploy key, or host key....

@kbuilds
Copy link

kbuilds commented Nov 16, 2017

I am also interested in this. When I try to run:

dokku_client.sh hostkeys:shared:autoadd mygitserver.com:2222

I get:

getaddrinfo mygitserver.com:2222: Name or service not known

@jalcine
Copy link

jalcine commented Aug 19, 2018

It looks like this happens because ssh-keyscan wants the port to be passed in separately when it's called here. A patch could be made to split the string using something like https://stackoverflow.com/a/918931/602588 and check if there's a port number and optionally set it to be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants