Solaris 10 ftp connection problem (connection refused, connection timed out)


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 ftp connection problem (connection refused, connection timed out)
# 1  
Old 07-30-2010
Error Solaris 10 ftp connection problem (connection refused, connection timed out)

Hi everyone,

I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the ftp connection either times out or is rejected. All IP configurations in the server are correct, as verified by our network team. All system configurations on ftp seem to be working as shown below:

------------------------------------------------
root@SOL10SER # svcs -a | grep ftp
online 2:34:37 svc:/network/ftp:default
root@SOL10SER # inetadm | grep ftp
enabled online svc:/network/ftp:default
root@SOL10SER # cat /etc/services | grep ftp
ftp-data 20/tcp
ftp 21/tcp
tftp 69/udp
root@SOL10SER # netstat -an | grep *.21
*.21 *.* 0 0 49152 0 LISTEN
*.21 *.* 0 0 49152 0 LISTEN
-------------------------------------------------

As for the network part, we have verified that the following files contain correct values:

/etc/defaulrouter
/etc/netmasks
result of ifconfig -a

Furthermore, this server is not connected to any firewall/load balancer/proxy

Can anyone tell me what's going on? Thanks everyone for your time.
# 2  
Old 07-30-2010
Did you check whether FTP is enabled on the servers where it is timing out or getting rejected.
# 3  
Old 07-30-2010
Thanks for your response.

Yes we did. ftp is working fine on the destination servers we tested (outbound and inbound).

What's more strange in this server having problem is that all inbound ftp connections are working fine. It is only its outbound connection that results to rejection/timing out.
# 4  
Old 07-30-2010
In that case, in the servers not allowing ftp you can look into below two files which are used to restrict ftp access.

- /etc/ftpd/ftpusers - the user ID you are trying to use to login must not be there in this file.

- /etc/ftpd/ftphosts - this is used to specifically dis allow ftp access to a login ID from a particular host.
# 5  
Old 07-30-2010
A few things to check from the basic to the more obscure.

1) Can you ftp within the server both to localhost and the server name?

ftp localhost
ftp localservername

2) Is the server name and IP address consistent?

Check on every machine:
nslookup servername1
nslookup servername2

3) Are there rogue .netrc files ?

Search each source computer for .netrc files and inspect permissions and contents.

4) FTP can be crippled by certain physical network configuration issues

No network port on the server, switch or hub should be set to auto-detect or auto-negotiate. The mess this can create is very difficult to detect but a common symptom is connections dropping to half-duplex and CRC errors.
A cold start of network components and then servers will often cure these symptoms for a while. A random order cold start (e.g. after a power failure) will often cause these symptoms. Re-patching a network connection is another way of causing these symptoms.

5) FTP does not like the "jumbo packets" setting in any network components and will often hang.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP connection refused issue

Hi All, I am using the below script to get some files from the remote location HOST='Test03' USER='root' PASSWD='*****' FILE='/home/user/d.txt' ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD get $FILE quit END_SCRIPT exit 0 But ist is giving me the... (3 Replies)
Discussion started by: sharsour
3 Replies

2. Shell Programming and Scripting

FTP connection refused

Hi I am trying to execute a shell script which is in unix server gs1. The script is below which basically connects to another unix server q15 and tries to get a file using FTP . But i get error as "ftp: connect: Connection refused Not connected. Not connected." Please help with if the below... (8 Replies)
Discussion started by: samrat dutta
8 Replies

3. AIX

FTP connection refused from text editor while accessing AIX server .

HI , I'm facing the FTP connection refused from text editor while accessing AIX server .It showing the messege "can't create ftp connection connectin refused".Though it is accessible from putty . i'm using aix version 6 . Can any one let me know the seetings needs to be made so that i... (2 Replies)
Discussion started by: rmkganesh
2 Replies

4. Debian

ftp connection refused

I have two computers running Debian 6.0 and one running Solaris 2.6 on a private network. The Debian computers can ftp to the Solaris computer but if a Debian computer is the destination the ftp connection is refused. I assume this is some security feature of Debian. What can I do to allow... (2 Replies)
Discussion started by: snorkack59
2 Replies

5. Solaris

ftp connect connection refused solaris 11

hi, I am using solaris 11 , facing problem in ftp while using ftp to connect it from other os. SCP and ssh are working fine. sftp also working from other solaris machine but i want to ftp from windows os which show me the below message. ftp connect connection refused I use below command... (3 Replies)
Discussion started by: zeeshan047
3 Replies

6. UNIX for Advanced & Expert Users

ftp connection refused

Hi- While trying ftp from AIX to Windows im getting below error. Can anyone share ur views on this topic. root@AB101# ftp -n 10.192.168.68 ftp: connect: A remote host refused an attempted connect operation. ftp> Thanks. (3 Replies)
Discussion started by: yanis
3 Replies

7. IP Networking

nc (netcat): Connection refused problem

From my machine (ubuntu), I can do $ nc somemachine 80 But, when I want to connect to other machine that runs nc on different ports, it throws "Connection refused" error. The same error occurs on my local machine. For example, nc -l 5555 nc x.x.x.x 5555 --> this throws "Connection... (2 Replies)
Discussion started by: dinga
2 Replies

8. Shell Programming and Scripting

Connection refused to ftp from a unix server to a windows pc

I need your help please. In order to run a script after a ftp connection, ive got initially this problem: from unix pc machine to a Unix server i could ftp succesfully but in reverse (i mean from unix to pc machine i cant ftp. The error message is this ftp 192.168.29.90 ftp: connect: Connection... (1 Reply)
Discussion started by: alexcol
1 Replies

9. Shell Programming and Scripting

rsh problem connection refused

I'm trying to use rsh command to read a variable on a remote machine. I can rlogin with no problem. If I rsh HOST I also get connection like with rlogin. There is no need for passwords. But when I rsh HOST COMMAND it waits 30 seconds then gives me a connection refused error message. Any ideas? ... (4 Replies)
Discussion started by: Mace
4 Replies

10. Linux Benchmarks

Connection Timed out problem - EM64T

Hai All, I have problem during HTTP benchmarking with polygraph tool on EM64T machine. Benchmarking results are getting problem bcas of connection timed out system errors. Machine log information is as, /var/log/messages.3:Feb 18 16:17:44 proxy64 network: Bringing up interface eth0: ... (0 Replies)
Discussion started by: muthukumar
0 Replies
Login or Register to Ask a Question