Ricerca tra la vecchia roba

Impostare certification authority per l’FTP di autistici

Posted: Luglio 27th, 2011 | Author: | Filed under: Life, ssh | Commenti disabilitati su Impostare certification authority per l’FTP di autistici

Per motivi che non sto a spiegare dovevo entrare nel mio spazio webz, ma l’inganno sopraggiunge

$ lftp packz@ftp666.autistici.org
Password: 
lftp packz@ftp666.autistici.org:~> ls
ls: Errore fatale: Certificate verification: Not trusted
lftp packz@ftp5.autistici.org:~> exit

Non posso mica lasciare nell’incertezza la connessione, quindi scarico il certificato utile e lo piazzo dove il comando UNIX può trovarlo

$ wget -O ~/.ftp.pem http://ca.autistici.org/certs/ftp.pem

configurando opportunamente

$ cat ~/.lftprc
set ftp:ssl-force true
set ssl:ca-file ~/.ftp.pem

il tutto si risolve

$ lftp packz@ftp666.autistici.org
Password: 
lftp packz@ftp666.autistici.org:~> ls                                  
drwxrws---    2 236368   33           4096 Jun 01  2007 Image
drwxrws---   13 236368   33           4096 Aug 24  2010 html-packz
drwxr-s---    2 33       33           4096 Jun 18 04:26 logs
drwxr-s---    2 236368   33           4096 Jul 27 18:57 sessions
drwxr-s---    2 236368   33           4096 May 31 09:34 tmp
lftp packz@ftp666.autistici.org:/>

Comments are closed.