Skip to content
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

[VMAccess extension] VMAccess extension can't add ed25519 ssh public key on azure portal for ubuntu 24.04 #1998

Open
wbypai opened this issue Nov 19, 2024 · 0 comments

Comments

@wbypai
Copy link

wbypai commented Nov 19, 2024

Ubuntu 24.04.1 LTS

add ssh-ed25519 in authorized_keys for ubuntu2404, success on azure portal
Image

waagent.log

2024/11/19 09:46:43 VMAccess started to handle.
2024/11/19 09:46:43 [Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8] cwd is /var/lib/waagent/Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8
2024/11/19 09:46:43 [Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8] Change log file to /var/log/azure/Microsoft.OSTCExtensions.VMAccessForLinux/extension.log
2024-11-19T09:46:45.174745Z INFO ExtHandler [Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8] Command: extension_shim.sh -c ./vmaccess.py -e
[stdout]
2024/11/19 09:46:43 [Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8] Current sequence number, 7, is not greater than the sequence number of the most recent executed configuration. Exiting...
[stderr]
/var/lib/waagent/Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8/./vmaccess.py:333: SyntaxWarning: invalid escape sequence '\s'
pattern = '^{0}\s'.format(user_name)
/var/lib/waagent/Microsoft.OSTCExtensions.VMAccessForLinux-1.5.8/./vmaccess.py:385: SyntaxWarning: invalid escape sequence '\s'
if re.search("red\s?hat", os_name, re.IGNORECASE):
2024-11-19T09:46:45.176343Z INFO ExtHandler ExtHandler Downloading extension manifest
2024-11-19T09:46:45.262962Z INFO ExtHandler [Microsoft.CPlat.Core.RunCommandLinux-1.0.5] Target handler state: enabled [etag_6651346418787353852]
2024-11-19T09:46:45.263474Z INFO ExtHandler [Microsoft.CPlat.Core.RunCommandLinux-1.0.5] [Enable] current handler state is: enabled
2024-11-19T09:46:45.263599Z INFO ExtHandler [Microsoft.CPlat.Core.RunCommandLinux-1.0.5] Update settings file: 1.settings
2024-11-19T09:46:45.263818Z INFO ExtHandler [Microsoft.CPlat.Core.RunCommandLinux-1.0.5] Requested extension state: enabled
2024-11-19T09:46:45.264094Z INFO ExtHandler [Microsoft.CPlat.Core.RunCommandLinux-1.0.5] Enable extension: [bin/run-command-shim enable]
2024-11-19T09:46:45.264380Z INFO ExtHandler [Microsoft.CPlat.Core.RunCommandLinux-1.0.5] Executing command: /var/lib/waagent/Microsoft.CPlat.Core.RunCommandLinux-1.0.5/bin/run-command-shim enable with environment variables: {"AZURE_GUEST_AGENT_UNINSTALL_CMD_EXIT_CODE": "NOT_RUN", "AZURE_GUEST_AGENT_EXTENSION_PATH": "/var/lib/waagent/Microsoft.CPlat.Core.RunCommandLinux-1.0.5", "AZURE_GUEST_AGENT_EXTENSION_VERSION": "1.0.5", "AZURE_GUEST_AGENT_WIRE_PROTOCOL_ADDRESS": "168.63.129.16", "ConfigSequenceNumber": "1", "AZURE_GUEST_AGENT_EXTENSION_SUPPORTED_FEATURES": "[{"Key": "ExtensionTelemetryPipeline", "Value": "1.0"}]"}

only has ssh-rsa in authorized_keys

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant