Azure / Azure/azure-libraries-for-java

ssh key added rather than change on VM

Abierto
#259 3 comentarios 0 reacciones 1 asignado Reclamado por @anuchandy Ver en GitHub
Bug Compute Compute - VM customer-reported Mgmt
Lenguaje dominante
Java
Estrellas
97
Forks
102
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.