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
There is an issue with the function generatePublicKey in installsshkey-util.ts when something wrong happens with system command ssh-keygen the return string contains the string error.
/usr/bin/ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-XXXXXXv8SODi/agent.2410918; export SSH_AUTH_SOCK;
SSH_AGENT_PID=2410919; export SSH_AGENT_PID;
echo Agent pid 2410919;
/usr/bin/ssh-add -L
The agent has no identities.
Error loading key "/app/azure/P-Comp/_work/_temp/id_ed25519_my_ssh_key": error in libcrypto
Finishing: InstallSSHKey
The string _"/app/azure/P-Comp/_work/temp/id_ed25519_my_ssh_key": error in libcrypto comes from the return of the function generatePublicKey
The error handling should be improved so a proper error can be display.
When I try on the machine directly from the system to repeat the steps :
New issue checklist
Task name
InstallSSHKey
Task version
0.231.0
Issue Description
There is an issue with the function generatePublicKey in installsshkey-util.ts when something wrong happens with system command ssh-keygen the return string contains the string error.
The string _"/app/azure/P-Comp/_work/temp/id_ed25519_my_ssh_key": error in libcrypto comes from the return of the function generatePublicKey
The error handling should be improved so a proper error can be display.
When I try on the machine directly from the system to repeat the steps :
There is no problem with the key
I also try
I can generate the public key without an issue
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
Azure DevOps Server 2022.2 (AzureDevopsServer_20240806.7)
Operation system
RHEL 9
Relevant log output
Full task logs with system.debug enabled
Repro steps
The text was updated successfully, but these errors were encountered: