como hago para deshabilitar la sshkey de mi droplet?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello @victordiaz
In order to ensure that you’ll still have access to your droplet when
PubkeyAuthentication
is disabled you’ll need to enablePassword level authentication
, you can follow these steps.Edit the sshd config file
PasswordAuthentication
from “no” to “yes” and save the filePubkeyAuthentication
from yes to no.Happy Holidays!
Hi @victordiaz,
You can disable your SSH authentication by editing the /etc/ssh/sshd_confg file on your Droplet.
In there you can find the line that says
PubkeyAuthentication Yes
and change it toPubkeyAuthentication No
.Afterward restart the SSHD service and you are good to go:
If you however want to disable only a particular SSH key from accessing your Droplet, open the ~/.ssh/authorised_keys. Delete the line containing the key you wish to remove and that’s it.
Hola @victordiaz!!
Si tu Droplet está corriendo un Ubuntu, generalmente con
PubkeyAuthentication
especificas que la clave pública está permitida para la autenticación. Por defecto la tenemos en yes.Puedes cambiar esta configuración modificando el archivo de configuración de tu Servidor SSH.
Luego busca
PubKeyAuthentication
y lo pones en no.Finalmente solo necesitas reiniciar el servidor SSH, puedes hacerlo con el siguiente comando:
Ya me dices si te ha funcionado :)
Salu2,
Sergio Turpín