Può succedere che di punto in bianco nel proprio server Linux non sia più possibile accedere tramite FTP.
Il primo tentativo da fare è accertarsi che il servizio sia su:
# netstat -apn | grep 21
e vedere così se c’è qualche processo in ascolto sulla porta 21.
Se non doveste trovare nulla, vuol dire che il servizio (nel mio caso proftpd) non è attivo, quindi bisogna (ri)avviarlo:
# /etc/init.d/proftpd restart
Succede però che, se non avete installato proftpd come standalone, riceviate la risposta:
ProFTPd is started from inetd/xinetd.
significa che c’è il super-server inetd che controlla la porta ed eventualmente lancia il servizio. Per risolvere dunque basta riavviare inetd:
# /etc/init.d/openbsd-inetd stop
* Stopping internet superserver inetd [ OK ]# /etc/init.d/openbsd-inetd status
* could not access PID file for inetd# /etc/init.d/openbsd-inetd start
* Starting internet superserver inetd [ OK ]# netstat -apn | grep 21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 15575/inetd