FTP stuck in 150 ascii after executing command


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat FTP stuck in 150 ascii after executing command
# 1  
Old 04-26-2017
FTP stuck in 150 ascii after executing command

Hi,

We have 2 linux RH servers (Server A and Server B), that were configured the same way. Same OS version, same ftp client, etc.

The ftp client that we had installe, was downloaded from rpmbone site and the filename is: ftp-0.17-53.el6.x86_64

The permissions were already set up equally, at a firewall level, for both servers. Both are on the same vlan 10.240.194.x/23
The FTP server configuration is unknown to us, because it's own by another company. So far they provided ip, user/passwd and told us to use active mode.

Server A connects to the ftp server without issues. It allows to pwd, ls, change directory and of course upload/download files.

Server B does connect as well. But when we try to list files/directories, find current dir location, or upload/download files we can't. So far the only thing we are able to do, is change to another directory.


Everytime we try, to do at least a simple ls,pwd we get this msg
Code:
200 PORT command successful. 
150 Opening ASCII mode data connection.      (it gets stuck here for a couple of seconds)
500 Command not understood.

As far as I understand, that ftp client, which is installed in both servers, doesn't have anything to be changed or configured.


Does anyone has an idea of what could be check/change to make the other server work. Sadly the FTP server, is not owned by our company. I tried to do some search, but haven't been lucky.


Any help is appreciated.

Last edited by rbatte1; 04-27-2017 at 06:02 AM.. Reason: Added CODE tags for output
# 2  
Old 04-28-2017
Perhaps the ftp Server doesn't like ascii connections and your Server A defaults to a 'binary' connection at startup.

On both of your ftp clients, after ftp login, enter the 'binary' command and see what it allows you to do. Then enter the 'ascii' command and see what happens when you try to do things. In that way, compare your two ftp client configurations.

Perhaps ask your ftp server admins whether the use of ascii connection is permitted.
This User Gave Thanks to hicksd8 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Stuck process when using sed command

$BIN/sql.py "select * from reporting.V_AMSNB_OPT_PB_LOAD" | sed -n "2,$ p" | sed "s/ /,/g" > $DATADIR/OPT_PB_LOAD_AMSNB.csv if The processes that get created from the above code gets stuck...as in the processes get created but then never completes. (or at least we assume it never completes... (1 Reply)
Discussion started by: mimiyj
1 Replies

2. Shell Programming and Scripting

FTP Issue with Non ascii character

I have one file .dat file on windows server containg the following text "Bürki" Now When I am using FTP (get) command from UNIX server the text is appering is as "Bürki" I want to preserve the text in the file on UNIX server as it is in source file. Could you please suggest some... (2 Replies)
Discussion started by: Bhushan D
2 Replies

3. UNIX for Dummies Questions & Answers

stuck in editing file with cat command

Hi, While editing a small text file with cat command i pressed ctrl-d to send eof, instead of coming out of cat command it echoed ^D to the screen. Same thing is happening to ctrl-c. After googling i found this is because of trap. The problem is i m stuck in editing mode and cannot get the... (3 Replies)
Discussion started by: TITANIUM
3 Replies

4. Shell Programming and Scripting

executing commands through FTP session

Dears, i want to execute unix commands through FTP session those commands like grep XXXXX file name > new file tar new file ..... etc Please let me know how to so thank you (3 Replies)
Discussion started by: faiz
3 Replies

5. Shell Programming and Scripting

ftp - determine ascii or binary file

Hello, How to i determine via ftp commandline if files on ftp server is ascii or binary files. Like every other comon windows ftp program does it automatically. regards Thomas (5 Replies)
Discussion started by: congo
5 Replies

6. Shell Programming and Scripting

executing *.bat file on windows from Unix box via ftp command

I have created get_list.bat file containing following line: dir /B /O-d >file_list.txt I am executing ftp command from Unix box and transferring get_list.bat file to windows server. In my next ftp command I am trying to execute this test.bat file by entering this line: get_list or by... (9 Replies)
Discussion started by: alx
9 Replies

7. UNIX for Advanced & Expert Users

FTP'ed in ASCII a word file, how to recover

This is my worst nightmare in recent years!!! I spent two days writing a proposal due tomorrow, ftp'ed the Word doc to a Unix machine in ASCII mode (i forgot to turn BIN on). Then I was trying to help a colleague download it and I accidently download the ASCII file back to the same dir on my... (1 Reply)
Discussion started by: venkir
1 Replies

8. UNIX for Advanced & Expert Users

Ftp :bin and ascii

Hi , I am trying to ftp a file once using ascii mode and once binary mode The ftp prompt shows different bytes transferred for each of them but at the destination server,each one of these files gets created with the same byte size and are identical.Can anyone shed any light on this ... (1 Reply)
Discussion started by: smehra
1 Replies

9. Shell Programming and Scripting

Executing statements after quit in FTP.

In my shell script I am doing FTP along with other process. But all the statements after the "quit" command in FTP are not getting executed. Example: echo "This is a shell script to FTP a file" #ftp -inv <server name> <<eol>> <logfilename> #user <userid> <password> #put <filename> #quit... (2 Replies)
Discussion started by: dharmesht
2 Replies

10. UNIX for Dummies Questions & Answers

FTP - Executing Commands

I have written a script to ftp a file from Unix to an NT machine to authenticate ftp login I have added the information into the .netrc file when logged in using ftp the commands are not executed. Does anybody know how to make the command execute once username and password have been provided using... (2 Replies)
Discussion started by: hesmas
2 Replies
Login or Register to Ask a Question