Azure / Azure/azure-libraries-for-java

ssh key added rather than change on VM

Aperta
#259 3 commenti 0 reazioni 1 assegnatario Rivendicata da @anuchandy Vedi su GitHub
Bug Compute Compute - VM customer-reported Mgmt
Lingua principale
Java
Stelle
97
Fork
102
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.