Hi Sergey,
I've just got back to this courtesy of my sysadmin getting public key auth working.
The short answer is i got this working, thank you !
The longer answer is
- I was using diffie-hellman-group14-sha256 when connecting previously with a password. When i used pageant it seems like there is the remote side is only offering up diffie-hellman-group14-sha1. I have more to do to understand this, possibly this error is in our VMS side configuration. As far as i know the algorithms in the KEX offered by the remote side are it's full subset, not just those that match the incoming algorithms from the client (
https://goteleport.com/blog/ssh-handsha ... y-exchange).
- I am a little concerned with using that pre-compiled executable in the ssh2 directory, due to security constraints in my job. For any others facing this, downloading the windows sdk and compiling in the visual studio developer command prompt was able to rebuild the pageant shim exe present in ssh2
- It looks like that code is sending pageant a windows message (win32 api style), rather than via some other mechanism (i don't know how putty communicates with it on windows - maybe that code was lifted from putty on windows ?) - this led me to look a bit more at agent interactions - It looks like ssh2 supports agents other than pageant.
https://github.com/mscdex/ssh2#agent-related . It also looks like it will default to using openssh-agent on a windows environment. Now I connect to VMS using Windows terminal and openssh, and VMS IDE. The simplest option for me would be to use the pre-installed openssh on windows - i already have windows terminal connecting like this. Is it possible for vms ide to use these ? It seems like this might be possible ?
I haven't settled on putty / pageant vs inbuilt openssh - so this isn't an out and out feature request, i just wonder if it might be able to make this "just work" for people on windows, if they follow
https://learn.microsoft.com/en-us/windo ... management - where as pageant requires installing it and key format conversion.
Added in 16 minutes 49 seconds:
Hmmm,
On second reading of the ssh2 readme, i think i've misread it - options are pageant or cygwin. Trying
"addConnectConfig": {
"agent" : "openssh",
"agentForward" : true,
"authHandler" : [ "agent" ]
}},
Results in
client error: Error: Invalid cygwin unix socket path
client error: Error: All configured authentication methods failed
Cannot find files on remote source
Synchronization failed. [vms-ide]
So looks like pageant it is !