Проблема копирования файлов на FTP (FileZilla)
Модератор: Tim308
Проблема копирования файлов на FTP (FileZilla)
Всем привет!
Прошу помощи!
Настроил FTP, через filezilla клиент работает все нормально. Задача настроить копирование файлов на ftp сервер через батник. Что имеем:
Текстовый файл - ftp_command.txt
логин
пароль
cd 2
mput C:\1.xtx
quit
И собственно сам батник:
ftp_put
@Echo Off
ftp -s:ftp_command.txt -a 192.168.10.165
В итоге
(000069)18.01.18 16:32:45 - (not logged in) (192.168.10.165)> Connected on port 21, sending welcome message...
(000069)18.01.18 16:32:45 - (not logged in) (192.168.10.165)> 220-FileZilla Server 0.9.60 beta
(000069)18.01.18 16:32:45 - (not logged in) (м)> 220-written by Tim Kosse ([email protected])
(000069)18.01.18 16:32:45 - (not logged in) (192.168.10.165)> 220 Please visit https://filezilla-project.org/
(000069)18.01.18 16:32:45 - (not logged in) (192.168.10.165)> USER w
(000069)18.01.18 16:32:45 - (not logged in) (192.168.10.165> 331 Password required for w
(000069)18.01.18 16:32:45 - (not logged in) (192.168.10.165)> PASS *
(000069)18.01.18 16:32:45 - w (192.168.10.165)> 230 Logged on
(000069)18.01.18 16:32:45 - w (192.168.10.165)> TYPE I
(000069)18.01.18 16:32:45 - w (192.168.10.165)> 200 Type set to I
(000069)18.01.18 16:32:45 - w (192.168.10.165)> CWD 2
(000069)18.01.18 16:32:45 - w (192.168.10.165)> 250 CWD successful. "/2" is current directory.
(000069)18.01.18 16:34:46 - w (192.168.10.165)> 421 Connection timed out.
(000069)18.01.18 16:34:46 - w (192.168.10.165)> disconnected.
Копирование файла не произошло. Кто подскажет по какой причине?
При копировании файла при помощи filezilla клиент, трассировка следующая:
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> Connected on port 21, sending welcome message...
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> 220-FileZilla Server 0.9.60 beta
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> 220-written by Tim Kosse ([email protected])
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> 220 Please visit https://filezilla-project.org/
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> AUTH TLS
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> 502 Explicit TLS authentication not allowed
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> AUTH SSL
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> 502 Explicit TLS authentication not allowed
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> USER w
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> 331 Password required for w
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> PASS *
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 230 Logged on
(000065)18.01.18 16:16:13 - w (192.168.10.165)> CWD /2
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 250 CWD successful. "/2" is current directory.
(000065)18.01.18 16:16:13 - w (192.168.10.165)> TYPE A
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 200 Type set to A
(000065)18.01.18 16:16:13 - w (192.168.10.165)> PASV
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 227 Entering Passive Mode (10,48,148,153,224,178)
(000065)18.01.18 16:16:13 - w (192.168.10.165)> STOR 1.txt
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 150 Opening data channel for file upload to server of "/2/1.txt"
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 226 Successfully transferred "/2/1.txt"
(000065)18.01.18 16:16:13 - w (192.168.10.165)> TYPE I
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 200 Type set to I
(000065)18.01.18 16:16:13 - w (192.168.10.165)> PASV
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 227 Entering Passive Mode (10,48,148,153,239,97)
(000065)18.01.18 16:16:13 - w (192.168.10.165)> MLSD
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 150 Opening data channel for directory listing of "/2"
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 226 Successfully transferred "/2"
(000062)18.01.18 16:16:33 - w (192.168.10.165)> 421 Connection timed out.
Через клиент копирование файла выполнено успешно.
Прошу помощи!
Настроил FTP, через filezilla клиент работает все нормально. Задача настроить копирование файлов на ftp сервер через батник. Что имеем:
Текстовый файл - ftp_command.txt
логин
пароль
cd 2
mput C:\1.xtx
quit
И собственно сам батник:
ftp_put
@Echo Off
ftp -s:ftp_command.txt -a 192.168.10.165
В итоге
(000069)18.01.18 16:32:45 - (not logged in) (192.168.10.165)> Connected on port 21, sending welcome message...
(000069)18.01.18 16:32:45 - (not logged in) (192.168.10.165)> 220-FileZilla Server 0.9.60 beta
(000069)18.01.18 16:32:45 - (not logged in) (м)> 220-written by Tim Kosse ([email protected])
(000069)18.01.18 16:32:45 - (not logged in) (192.168.10.165)> 220 Please visit https://filezilla-project.org/
(000069)18.01.18 16:32:45 - (not logged in) (192.168.10.165)> USER w
(000069)18.01.18 16:32:45 - (not logged in) (192.168.10.165> 331 Password required for w
(000069)18.01.18 16:32:45 - (not logged in) (192.168.10.165)> PASS *
(000069)18.01.18 16:32:45 - w (192.168.10.165)> 230 Logged on
(000069)18.01.18 16:32:45 - w (192.168.10.165)> TYPE I
(000069)18.01.18 16:32:45 - w (192.168.10.165)> 200 Type set to I
(000069)18.01.18 16:32:45 - w (192.168.10.165)> CWD 2
(000069)18.01.18 16:32:45 - w (192.168.10.165)> 250 CWD successful. "/2" is current directory.
(000069)18.01.18 16:34:46 - w (192.168.10.165)> 421 Connection timed out.
(000069)18.01.18 16:34:46 - w (192.168.10.165)> disconnected.
Копирование файла не произошло. Кто подскажет по какой причине?
При копировании файла при помощи filezilla клиент, трассировка следующая:
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> Connected on port 21, sending welcome message...
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> 220-FileZilla Server 0.9.60 beta
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> 220-written by Tim Kosse ([email protected])
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> 220 Please visit https://filezilla-project.org/
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> AUTH TLS
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> 502 Explicit TLS authentication not allowed
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> AUTH SSL
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> 502 Explicit TLS authentication not allowed
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> USER w
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> 331 Password required for w
(000065)18.01.18 16:16:13 - (not logged in) (192.168.10.165)> PASS *
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 230 Logged on
(000065)18.01.18 16:16:13 - w (192.168.10.165)> CWD /2
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 250 CWD successful. "/2" is current directory.
(000065)18.01.18 16:16:13 - w (192.168.10.165)> TYPE A
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 200 Type set to A
(000065)18.01.18 16:16:13 - w (192.168.10.165)> PASV
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 227 Entering Passive Mode (10,48,148,153,224,178)
(000065)18.01.18 16:16:13 - w (192.168.10.165)> STOR 1.txt
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 150 Opening data channel for file upload to server of "/2/1.txt"
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 226 Successfully transferred "/2/1.txt"
(000065)18.01.18 16:16:13 - w (192.168.10.165)> TYPE I
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 200 Type set to I
(000065)18.01.18 16:16:13 - w (192.168.10.165)> PASV
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 227 Entering Passive Mode (10,48,148,153,239,97)
(000065)18.01.18 16:16:13 - w (192.168.10.165)> MLSD
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 150 Opening data channel for directory listing of "/2"
(000065)18.01.18 16:16:13 - w (192.168.10.165)> 226 Successfully transferred "/2"
(000062)18.01.18 16:16:33 - w (192.168.10.165)> 421 Connection timed out.
Через клиент копирование файла выполнено успешно.
Кто сейчас на конференции
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 0 гостей