[BUG] Cannot set destination path for SSH public keys
See original GitHub issueDescribe the bug: A clear and concise description of what the bug is.
https://github.com/Azure/azure-cli/issues/12459
When I use Azure CLI to create a VM and specify ssh key path, I get an error.
Destination path for SSH public keys is currently limited to its default value /home/[username]/.ssh/authorized_keys due to a known issue in Linux provisioning agent.
CLI command:
az vm create --resource-group myResourceGroup --name myVM --image UbuntuLTS --admin-username azureuser --generate-ssh-keys --ssh-dest-key-path './'
Note: Please add some context which would help us understand the problem better
- Section of the log where the error occurs.
- Serial console output
- Steps to reproduce the behavior.
Distro and WALinuxAgent details (please complete the following information):
- Distro and Version: UbuntuServer 18.04-LTS
- WALinuxAgent version WALinuxAgent-2.2.45 running on ubuntu 18.04 Python: 3.6.9 Goal state agent: 2.2.46
Additional context Add any other context about the problem here.
Log file attached If possible, please provide the full /var/log/waagent.log file to help us understand the problem better and get the context of the issue.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Troubleshooting SSH Key Authentication | Linode
This guide explains how to debug and resolve SSH public key permission errors that prevent access to your Linode.
Read more >Git SSH public key authentication failed with git on Azure ...
To solve this, I change ownership of the destination path to the same user:group ware my keys are stored and avoid to use...
Read more >How to troubleshoot SSH connections
To successfully use an SSH key, the public key must be installed into a file on .ssh/authorized_keys under the user's home directory.
Read more >Azure provider SSH public keys Destination path restriction
I'm having the same problem. It suggests the destination path for the public key cannot be changed from default, but i'm not trying...
Read more >Use ssh-keygen to create SSH key pairs and more - TechTarget
The fingerprint is a secure hash of the server's public key, which is stored in a file in the SSH directory. On Linux...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Do you have plan to support it?
Thanks for raising this issue! This behavior is by-design. It is best to ignore this option. Thanks!