Práctica Conexión al servidor Rediris por ftp y descarga de un archivo
Por Aitor López de Aberasturi el Miércoles, 11 de Junio de 2014 0 Comentarios
Rediris, la red española para Interconexión de los Recursos Informáticos de las universidades y centros de investigación, contiene un servidor ftp anónimo para realizar descargas. Vamos a conectarnos e investigar su contenido, así como la descarga de un archivo.
ftp ftp.rediris.esConnected to zeppo.rediris.es. 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 15 of 3000 allowed. 220-<< 220- Bienvenido al FTP anónimo de RedIRIS. 220-Welcome to the RedIRIS anonymous FTP server. 220->> 220-Local time is now 08:21. Server port: 21. 220-Only anonymous FTP is allowed here 220-IPv6 connections are also welcome on this server. 220 You will be disconnected after 5 minutes of inactivity. Name (ftp.rediris.es:aitor): anonymous331- RedIRIS - Red Académica y de Investigación Española 331- RedIRIS - Spanish National Research Network 331- 331- ftp://ftp.rediris.es -=- http://ftp.rediris.es 331- 331 Any password will work Password: 230 Any password will work Remote system type is UNIX. Using binary mode to transfer files. ftp> ftp> ls 200 PORT command successful 150 Connecting to port 51176 drwxr-xr-x 7 55 55 512 Dec 7 17:07 . drwxr-xr-x 7 55 55 512 Dec 7 17:07 .. -rw-r--r-- 1 55 55 189 Mar 27 2012 .banner drwxr-xr-x 8 55 55 14 Dec 7 17:12 debian d-wx--x--x 2 104 55 5250 Dec 4 21:40 incoming -rw-r--r-- 1 55 55 730811719 Dec 7 17:06 ls-lR -rw-r--r-- 1 55 55 138118939 Dec 7 17:07 ls-lR.Z -rw-r--r-- 1 55 55 93922838 Dec 7 17:07 ls-lR.gz drwxr-xr-x 2 55 55 3072 Oct 31 12:32 mirror d--x--x--x 16 104 55 16 Nov 8 2012 outgoing drwxr-xr-x 3 55 55 512 Jul 4 2012 pub drwxr-xr-x 68 55 55 68 Oct 31 16:46 sites -rw-r--r-- 1 55 55 86 Jan 18 2010 welcome.msg 226-Options: -a -l 226 13 matches total ftp> ^C ftp> exit 221-Goodbye. You uploaded 0 and downloaded 0 kbytes. 221 Logout. root@dinux:/var/www/wordpress/wp-content/themes# apt-get install proftpd Leyendo lista de paquetes... Hecho Creando árbol de dependencias Leyendo la información de estado... Hecho Nota, seleccionando «proftpd-basic» en lugar de «proftpd» proftpd-basic ya está en su versión más reciente. 0 actualizados, 0 se instalarán, 0 para eliminar y 28 no actualizados. root@dinux:/var/www/wordpress/wp-content/themes# la -lr ^C ftp ftp.rediris.es Connected to zeppo.rediris.es. 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 11 of 3000 allowed. 220-<< 220- Bienvenido al FTP anónimo de RedIRIS. 220-Welcome to the RedIRIS anonymous FTP server. 220->> 220-Local time is now 08:22. Server port: 21. 220-Only anonymous FTP is allowed here 220-IPv6 connections are also welcome on this server. 220 You will be disconnected after 5 minutes of inactivity. Name (ftp.rediris.es:aitor): anonymous 331- RedIRIS - Red Académica y de Investigación Española 331- RedIRIS - Spanish National Research Network 331- 331- ftp://ftp.rediris.es -=- http://ftp.rediris.es 331- 331 Any password will work Password: 230 Any password will work Remote system type is UNIX. Using binary mode to transfer files. ftp> cd /pub/rediris/reto/1/diskimage 250 OK. Current directory is /pub/rediris/reto/1/diskimage ftp> ls 200 PORT command successful 150 Connecting to port 44992 drwxr-xr-x 2 55 55 512 May 11 2010 . drwxr-xr-x 3 55 55 512 Jul 4 2012 .. -rw-r--r-- 1 55 55 1833832 May 23 2003 192.168.3.10-hda1.dd.bz2 -rw-r--r-- 1 55 55 124628995 May 23 2003 192.168.3.10-hda5.dd.bz2 -rw-r--r-- 1 55 55 8667 May 23 2003 192.168.3.10-hda6.dd.bz2 -rw-r--r-- 1 55 55 14117991 May 23 2003 192.168.3.10-hda7.dd.bz2 -rw-r--r-- 1 55 55 27325656 May 23 2003 192.168.3.10-hda8.dd.bz2 -rw-r--r-- 1 55 55 7654328 May 23 2003 192.168.3.10-hda9.dd.bz2 -rw-r--r-- 1 55 55 246 Nov 11 2003 ficheros.txt.bz2 226-Options: -a -l 226 9 matches total ftp> get ficheros.txt.bz2 local: ficheros.txt.bz2 remote: ficheros.txt.bz2 200 PORT command successful 150 Connecting to port 39950 226-File successfully transferred 226 0.008 seconds (measured here), 31.24 Kbytes per second 246 bytes received in 0.00 secs (1891.6 kB/s) ftp> bye 221-Goodbye. You uploaded 0 and downloaded 1 kbytes. 221 Logout.Próxima entrada
Práctica: Subir una página completa a un servidor ftp mediante comandos.