Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/02/2014, 12:54
Avatar de lucho2000
lucho2000
 
Fecha de Ingreso: mayo-2012
Mensajes: 38
Antigüedad: 12 años
Puntos: 0
Sonrisa Problema Conexion ftp en Centos 6.4

Buen dia.
Tengo un problema con un shell de Linux (Centos 6.5) cuyo objetivo es descargarse un archivo de un servidor.

El scrip es el siguiente:
#!/bin/sh
HOST='192.xx.xx.xxx' # change the ipaddress accordingly
USER='ftpusar' # username also change
PASSWD='passwd' # password also change
DIRBK='backups'
DIRLOCAL='/home/server/backups/'
#Inicio de la conexion
echo "Inciando la conexion"
ftp -n -v $HOST <<END_SCRIPT
passive
quote user $USER
quote pass $PASSWD
bin
prompt off
cd $DIRBK
lcd $DIRLOCAL
mget *.tar.gz
bye
END_SCRIPT
exit 0

Al ejecutar el archivo arroja lo siguiente:

Inciando la conexion
Connected to 192.xx.xxx.xx (192.xx.xxx.xx).
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 13:56. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Remote system type is UNIX.
Using binary mode to transfer files.
?Invalid command
331 User sitrans3_ OK. Password required
530 Login authentication failed
?Invalid command
Interactive mode off.
530 You aren't logged in
: No existe el fichero o el directorio
You aren't logged in
Passive mode refused.
?Invalid command
221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
221 Logout.
: se requiere un argumento numérico



Ya hice la conectividad con filezilla y me deja conectar al servidor, tambien desactive el firewall para hacer la prueba pero el error persiste.

Agradezco a quien pueda ayudarme...
__________________
LuisPuentes