FTP failure


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users FTP failure
# 1  
Old 09-10-2015
FTP failure

Hi,

We have a external vendor (outside firewall), who used to connect our ftp server till 2 days back. I am not able to figure out, what was changed. Now he is not able to login. When I login to ftp server (from inside firewall), I am able to connect with credentials. When that vendor login to it, it come out with below messages :-
Code:
Status:                   Resolving address of ftps.xxxxxx.com
Status:                   Connecting to 65.221.21.24:21...
Status:                   Connection established, waiting for welcome message...
Status:                   Initializing TLS...
Status:                   Verifying certificate...
Status:                   TLS connection established.
Status:                   Server does not support non-ASCII characters.
Status:                   Connected
Status:                   Retrieving directory listing...
Command:              PWD
Response:               257 "/" is your current location
Command:              TYPE I
Response:               200 TYPE is now 8-bit binary
Command:              PASV
Response:               227 Entering Passive Mode (65,221,21,24,195,184)
Command:              MLSD
Error:                    The data connection could not be established: ECONNREFUSED - Connection refused by server
Error:                    Connection timed out after 20 seconds of inactivity
Error:                    Failed to retrieve directory listing

Any pointers or hint, where can I check more ?
# 2  
Old 09-10-2015
Do you have to use PASV?
# 3  
Old 09-10-2015
I am not sure. I will check with him, if they can go without PASV. But they have been using it since past more than a year same way.
Can this be an issue ?
# 4  
Old 09-10-2015
The problem appears to be on the remote side. Some firewalls have to be set to allow passive versus passive. Passive requires an open port, above 1023 and it will ask for any valid port number. This can be a problem on the server side. When port blocking is active. Since you had an active session going until PASV was issued I am guessing the problem starts there.

This is more than I can post here so have a read:
Active FTP vs. Passive FTP, a Definitive Explanation
These 2 Users Gave Thanks to jim mcnamara For This Post:
# 5  
Old 09-10-2015
I will check tomorrow with non passive mode and try to debug, where it breaks.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to retry FTP commands if unsuccessful and capture the failure status code.

I am using the below code to ftp file onto another server FTP_LOG_FILE=${CURR_PRG_NAME}- ${FTP_FILE}-`date +%Y%m%d%H%M%S`.log ftp -ivn ${FTP_HOST} ${FTP_PORT} << ENDFTP >> ${EDI_LOG_DIR}/${FTP_LOG_FILE} 2>&1 user ${FTP_USER} ${FTP_PSWD} lcd... (2 Replies)
Discussion started by: akashdeepak
2 Replies

2. UNIX for Dummies Questions & Answers

boot up failure unix sco after power failure

hi power went out. next day unix sco wont boot up error code 303. any help appreciated as we are clueless. (11 Replies)
Discussion started by: fredthayer
11 Replies

3. Shell Programming and Scripting

FTP failure with different scenario

Hi Gurus the below FTP code works fine, but the issue is from past 1 week couldn't able to send the files to external system. #--------------------------------------------------------------------# #Start the ftp session #--------------------------------------------------------------------#... (3 Replies)
Discussion started by: SeenuGuddu
3 Replies

4. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

5. IP Networking

FTP failure due to network problem

Hi, I've been searching through out this forum to find the exact message when during the on-going FTP, suddenly the network went down but i cannot find some. Could anyone provide me the exact return codes when FTP failed during FTP or prior to FTP the network went down and you still proceeded to... (3 Replies)
Discussion started by: vibora
3 Replies

6. Shell Programming and Scripting

Retry upon FTP failure

I am using the following code in a C Shell script to transfer files to a remote server: ftp -n logxx.xxxx.xxx.xxx.com <<DO_FTP1 quote user $user_name quote pass $password ascii put $js_file_name bin put $FinalZipFile quit DO_FTP1 This code works great except on those rare occasions... (8 Replies)
Discussion started by: phudgens
8 Replies

7. UNIX for Advanced & Expert Users

su failure

Usually when su rejects an attempt to switch user it responds with "Sorry" but with a certain username on some unix servers the response is "Killed". I'm guessing the su accepted the username/password but refused to spawn child shell with the specified username. What's causing this and what has to... (8 Replies)
Discussion started by: twk
8 Replies

8. IP Networking

Automate FTP process and autorestart on link failure

Hi Guys, i have this lil challenge; i am to implement an automated script that searches/scans a directory for files then picks and sends this files to a very remote server via an ftp link. the challenge here is that the ftp link fails due to netwrk issues maybe; i therefore need to develop... (5 Replies)
Discussion started by: sdcoms
5 Replies

9. UNIX for Dummies Questions & Answers

failure writing network systems-ftp error

Hi, I tried to do a ftp get process from linux server to a remote system.It was giving an error 'failure writing network systems'.I am trying to ftp two files,one among them is successful and this problem occurs only if i run the code through 'cron' ie,manual run ends successfully. Would... (0 Replies)
Discussion started by: DILEEP410
0 Replies

10. Shell Programming and Scripting

Determining the failure or success of FTP

Hi there, I am in the process of writing a shell script to transfer files to a remote directory. Is there a method to determine the success or the failure of the ftp process. Regards Jim (4 Replies)
Discussion started by: JimJim
4 Replies
Login or Register to Ask a Question