Azure / Azure/azure-libraries-for-java

ssh key added rather than change on VM

Ouverte
#259 3 commentaires 0 réactions 1 personne assignée Réclamée par @anuchandy Voir sur GitHub
Bug Compute Compute - VM customer-reported Mgmt
Langage dominant
Java
Étoiles
97
Forks
102
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Using this to change the ssh key of the VM.
```
linuxVM.update()
.defineNewExtension("myextension")
.withPublisher("Microsoft.OSTCExtensions")
.withType("VMAccessForLinux")
.withVersion("1.4")
.withProtectedSetting("username","centos")
.withProtectedSetting("ssh_key",sshkey)
.withProtectedSetting("reset_ssh", "true")
.attach()
.apply();
```

This is appending the as new public key rather than update the existing key.

keys are appended ~/.ssh/authorized_keys.
I'm able to do ssh from both the key.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.