Canviar la configuració d'un servidor SSH Ubuntu
Per aquesta pràctica necesitem un servdir Ubuntu amb SSH
Primer accedim a la configuració del SSH amb la seguent comanda:
sudo vim /etc/ssh/sshd_config
On ens obrirà una pantalla semblant a aquesta
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Anem a instl·lar mesures de seguretat al nostre servidor SSH amb els seguents pasos:
DESACTIVAR CONTRASENYA
Primer desactivarem que es pugui accedir amb contrasenya, ja que nosaltres ja tenim la clau pública al servidor y per tant ens reconeixera
Si no saps que es la verificació amb clau pública fes click aquí
Un vegada dins de les configuracions buscarem el apartat seguent ( si utilitzeu VIM podeu buscarlo amb "/" ):
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Com podeu veure la primera opció ens deixa dir si "yes" o "no" a si volem que ens poguem authentificar amb contrasenya, per desactivar-ho farem el seguent:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Que he fet per desactivar-ho
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Primer he descomentat la opció treient el "#" del davant
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Després he canviat el "yes" per "no" de forma que ho he desactivat
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Per últim he guardat la configuració amb ":x"