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

Does it support ssh remote target on a different port than 22? #34

Closed
Sylvain303 opened this issue Oct 23, 2014 · 2 comments
Closed

Does it support ssh remote target on a different port than 22? #34

Sylvain303 opened this issue Oct 23, 2014 · 2 comments

Comments

@Sylvain303
Copy link

git remote -v
production  user@myremoteserver:/some/where/into/the/wild/htdocs/scripts/create_issue (fetch)
production  user@myremoteserver:/some/where/into/the/wild/htdocs/scripts/create_issue (push)

user@myremoteserver works fine via ~/.ssh/config

Host myremoteserver
    Port 1220

but this doesn't work: using wrong ssh port.

git deploy setup -r "production"
/home/sylvain/.rvm/gems/ruby-2.1.3@global/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:67:in `initialize': Network is unreachable - connect(2) for "myremoteserver" port 22 (Errno::ENETUNREACH)
    from /home/sylvain/.rvm/gems/ruby-2.1.3@global/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:67:in `open'
    from /home/sylvain/.rvm/gems/ruby-2.1.3@global/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:67:in `block in initialize'

However, it works with the syntaxe: more details

git remote add production ssh://user@myremoteserver:1220/some/where/into/the/wild/htdocs/scripts/create_issue
@guest20
Copy link
Contributor

guest20 commented Oct 23, 2014

I believe you're thinking of mislav/git-deploy, there's no setup command in this git-deploy.

see %legal_action in bin/git-deploy for more.

@Sylvain303
Copy link
Author

Yep sorry wrong project :)

for googler same notice here: about authentication and port…

mislav/git-deploy#45

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

2 participants