Replies: 2 comments 8 replies
-
|
Hey @jtnord Thanks for the issue, it seems like the CryptAcquireContext API is deprecated according to the docs you linked, SSH does not use that API so not sure how much we can help in this scenario... |
Beta Was this translation helpful? Give feedback.
-
|
I do not have an answer to why it doesn't work but I may have another way to do it. You can configure SSH to accept more than one path to key files. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We are having a very strange issue that we do not understand.
We have a Server VM (cloud based) (appiles to 2022 and 2025) in which openssh is installed.
The init scripts add a new local user, run a process as that user (to ensure the profile is created) add the user to "open ssh" users group and give the user an authorized key.
All of this is scripted (no GUI access).
The problem is if we ssh in with the users key the authentication works, however something is not initialized/working correctly as
attempting to access the
CryptAcquireContextreturnsACCESS_DENIED.If we then ssh using the
username:passwordinstead of the private_key then this API works.If we then ssh using the private_key then the API is also working.
So something is doing something when we use username/password auth but not ssh key based auth to presumably set something up in the profile (if we login via RDP and then logout instead of using username/password) then the same applies, the
CryptAcquireContextstarts working from the ssh-key based auth.I'm at a loss as to why this is not working or how we can work around this issue.
the initialization script is like the following obviously the password is different:
more attempts t debugging this are recorded in jenkinsci/credentials-plugin#999 but we have seemingly hit a dead end.
Beta Was this translation helpful? Give feedback.
All reactions