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

Solved: fatal: ssh variant 'simple' does not support setting port #1996

Open
kepes opened this issue Aug 7, 2018 · 0 comments
Open

Solved: fatal: ssh variant 'simple' does not support setting port #1996

kepes opened this issue Aug 7, 2018 · 0 comments

Comments

@kepes
Copy link

kepes commented Aug 7, 2018

I have a production server with git version 2.17.1
I'm using capistrano 3.11

Expected behavior

Deploy my project with cap production deploy

Actual behavior

Deploy process stop with
DEBUG [5215ee6f] fatal: ssh variant 'simple' does not support setting port

Solution

In newer version of git (newer than 2.16.0) we have to specify ssh variant
Stackowerflow link

To solve the problem I have to put this code to deploy.rb for git configuration:

set :git_environmental_variables, lambda {
  {
    git_ssh_variant: "ssh",
    git_askpass: "/bin/echo",
    git_ssh: fetch(:git_wrapper_path)
  }
}

It should be a config parameter for deploy.rb to configure ssh_variant.

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

1 participant