Skip to content

Existing SSH key is overwritten #4725

Description

When running az vm create --generate-ssh-keys: When this option is called, and a private key exists in ~/.ssh/id_rsa, but there is not a public key in ~/.ssh/id_rsa.pub, the existing private key is overwritten by generation of a new key pair. Correct behavior is to derive a public key from the private key using ssh-keygen -y.

Metadata

Metadata

Assignees

Labels

Computeaz vm/vmss/image/disk/snapshotbugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions