When I clone a remote GitLab project, I get the following error:
error fatal: ssh variant 'simple' does not support setting port
I tried to re-install TortoiseGit, but this did not solve the issue.
The internal behavior of Git (>=2.16.0) for SSH tool detection changed and TortoiseGitPlink
is not detected any more as ssh
or plink
compatible.
This only affects if the SSH URL contains a port or you have configured Git to use the Protocol version 2. For now, you need to set the environment variable GIT_SSH_VARIANT
to ssh
or configure it in Git settings using git config --global ssh.variant ssh
.
In the next version of TortoiseGit 2.5.7 this will be done automatically when TortoiseGitPLink is invoked by TortoiseGit (cf. https://tortoisegit.org/issue/3139). If you use TortoiseGitPLink
from CLI the setting is still needed).
Update (TLDR):
TortoiseGitPLink
from Git CLI also issue git config --global ssh.variant ssh
on CLI or set the environment variable GIT_SSH_VARIANT
to ssh
.if you are using Windows version of git, try this:
git config --global ssh.variant ssh
This is a better option for those who don't want to clutter the environment variables a lot.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With