question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Cannot set destination path for SSH public keys

See original GitHub issue

Describe 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

  1. Section of the log where the error occurs.
  2. Serial console output
  3. 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:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
qwordycommented, Nov 20, 2020

Do you have plan to support it?

1reaction
trstringercommented, Jul 15, 2020

Thanks for raising this issue! This behavior is by-design. It is best to ignore this option. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found