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
Adding known host does not work for non standard ports #2882
Comments
Oddly enough, a PR from 2014 claims to have that fixed - but it's still an issue in 2017. |
Which PR are referring to? |
OK, so looks like this is actually implemented and working! My issue lied elsewhere - paths to plink/pageant I set in Settings -> SSH were not in line with those stored in registry gitssh key updated itself after I re-saved settings in this page - but as seen, plink/pageant/puttygen are still wrong. |
Good stuff!
So which one does the "Test Connection" use?
…On 19 September 2017 at 21:56, Silent ***@***.***> wrote:
OK, so looks like this is actually *implemented and working*! My issue
lied elsewhere - paths to plink/pageant I set in Settings -> SSH were
*not* in line with those stored in registry HKCU\Software\GitExtensions
and therefore Test Connection used a different plink.exe than Pull does.
[image: image]
<https://user-images.githubusercontent.com/7947461/30591234-3d0e76ac-9d42-11e7-8626-8afda5f15282.png>
[image: image]
<https://user-images.githubusercontent.com/7947461/30591248-4955a91c-9d42-11e7-86c3-a9ca20954c45.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2882 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEMyXgI-NWfXo0nS62Qm6rJ01MGyYj7Qks5sj6vggaJpZM4Fdex5>
.
|
UI for Test Connection relies on the one from registry (so if gitssh reg entry doesn't point to plink.exe, Test Connection button is gone), however when launched the option uses plink from Settings. Pull/Fetch and Update remote branch info always use plink from registry. So if both paths point to valid plink (which is easy since they point to GitExt's plink by default and users might have changed the option in Settings to point to a separate plink) incosistencies like this can occur. I'm currently working on noting down a reliable repro path for desyncing those without messing with registry keys manually and I'll redirect this discussion there. |
Created #4011 - let's move the discussion here. Long story short - issue OP had seems to be fixed provided paths to plink are correct - I'm now able to pull from SSH over port |
Discussion was moved to #4011, need to close this. |
I'm using Gerrit which has SSH running on the non standard port 29418. Automatically adding a known host doesn't work in that instance. The command box that opens clearly connects to the default SSH port; not the non-standard one. Since they are using different SSH certificates, the wrong host is added. Instead plink should be run as
plink -P 29418 host
.The text was updated successfully, but these errors were encountered: