You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function authorizeSSHKeyAdmin does not check if the folder %ProgramData%\ssh exists when writing the administrators_authorized_keys file. By default, this folder does not exist in some Windows client or server versions.
This creates unnecessary errors in the log file.
To reproduce
Prepare a fresh Windows VM with the affected Windows version
Install OpenNebula context version 6.10.0-2
Add SSH public key into context
Add WINADMIN = "YES" context variable
Wait 30+ seconds for context to run and pick up the changes
See the Set-Content : Could not find a part of the path 'C:\ProgramData\ssh\administrators_authorized_keys'. error in %SYSTEMDRIVE%.onecontext\opennebula-context.log file and that no %ProgramData%\ssh folder was created with the administrators_authorized_keys inside
Description
The function authorizeSSHKeyAdmin does not check if the folder %ProgramData%\ssh exists when writing the administrators_authorized_keys file. By default, this folder does not exist in some Windows client or server versions.
This creates unnecessary errors in the log file.
To reproduce
Set-Content : Could not find a part of the path 'C:\ProgramData\ssh\administrators_authorized_keys'.
error in %SYSTEMDRIVE%.onecontext\opennebula-context.log file and that no %ProgramData%\ssh folder was created with the administrators_authorized_keys insideDetails
Additional context
Possible solutions
Progress Status
The text was updated successfully, but these errors were encountered: