I have ftp on assustor server, I try to connect to ftp using shell script but always have error:
this is my script :
#!/bin/bash
ftp -inv $HOST << EOF
user $USER_NM $PWS
lcd $PATH
mget *.*
bye
EOF
i run this script on linux Centos.
this is my command :
sh ftp_getfiles.sh
and this is what I've got when run the script
**220 ProFTPD 1.3.4a Server (ProFTPD) [::ffff:192.168.1.7]
Remote system type is UNIX.
Using binary mode to transfer files.
331 Password required for disti1
530 Login incorrect.
Login failed.
: No such file or directorydistifiles
Please login with USER and PASS
Passive mode refused.
?Invalid command
221 Goodbye.**
Comments
Post a Comment