Crear servidor FTP amb Proftpd
Per la practica d'avui usarem el Proftpd que instal·larem de la seguent manera:
Instal·lem el proftd amb la seguent comanda:
sudo apt install proftpd-basic
Després ens conectem per FTP amb la seguent comanda i introduim les credencials del sistema:
ftp IP_DEL_SERVER
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 →
Ara farem ls al nostre client i mourem un arxiu
Creem l'arxiu i el modifiquem
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 →
Editem l'arxiu
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 →
Confirmant l'enviament
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 →
Confirmació de la part del servidor
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 →
La transferencia ha sigut per un protocol conegut com FTP ( que no te cap mena de seguretat), a continuació usarem un protocol protegit amb TLS ( xifrat )
Habilitar mòdul TLS
Per generar les nostres claus es necesari instalar un paquet conegut com "openssl". Ho instalarem amb la seguent comanda:
sudo apt install openssl
Seguidament generarem les claus per al nostre servidor amb la seguent comanda:
sudo openssl req -x509 -newkey rsa:1024 -keyout /etc/ssl/private/proftpd.key -out /etc/ssl/certs/proftpd.crt -nodes -days 365
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 →
🔮 Ús d'aquesta comanda
.
El qe ens permet aquesta comanda es generar una clau i un certificat amb xifrat RSA que duraran 365 dies i es guardaran a les seguents rutes:
- /etc/ssl/private/proftpd.key
- /etc/ssl/certs/proftpd.crt
Recorda que cal asignar uns permisos especial
Per fer-ho segueix les seguents comandes:
- sudo chmod 600 /etc/ssl/private/proftpd.key
- sudo chmod 600 /etc/ssl/certs/proftpd.crt
Continuem amb la configuració
Per acabar de configurar el nostre servidor entrarem en els ajustos de proftpd amb la comanda:
sudo vim /etc/proftpd/proftpd.conf
Descomentem la linea 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 →
Guardem l'arxiu i sortim
sudo vim /etc/tls.conf
Descomentem les seguents lines:
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 →
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 →
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 →
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 →
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 guardar la configuració reiniciem el servei amb:
sudo systemctl restart proftpd
🏁Prova de que funciona 🏁
Per comprovar que funciona ens nem a conectar desde el nostre client amb Filezilla