Ftp connection resfused Redhat Enterprice 3


 
Thread Tools Search this Thread
Operating Systems Linux Ftp connection resfused Redhat Enterprice 3
# 1  
Old 04-09-2004
Ftp connection resfused Redhat Enterprice 3

Hello guys.

I have a problem i'm a newbie with Redhat , in other word i dont know much about it.

I just did a clean install and i'm trying to fto the box from a Xp computer ,

The error i'm getting is "ftp: connect : Unknown error number"

O know that i need to edit some files ir enable a service but i just cant find it.


If any of you could give me a hand on this will be nice ,


Thanks a lot
# 2  
Old 04-09-2004
please use the search function. this question has been asked and answered before.
# 3  
Old 04-09-2004
Quote:
Originally posted by norsk hedensk
please use the search function. this question has been asked and answered before.

i did and there was nothing about the error message that i was getting "Unknown error number"


Also is a different version of redHat .
# 4  
Old 04-09-2004
well first check to see that an ftpd is installed. i dont use redhat so you would be more familiar with this than i. open your package manager and check to see if there is an ftpd installed. after that, i would think redhat would enable it and everything should work. if it dosnt, then you have to go to your /etc/ directory and check your config files, might be inetd.conf or something somwhere else.
# 5  
Old 04-09-2004
I thought vsftp setup would be on the forum too and even thought I already posted it. All I could find was wu-ftp. So here is vsftp (maybe again). If something doesn't make sense, check out the man pages or post a reply. I don't fully understand all the settings available in the .conf file so I probably can't help you there too much.

1. Install the vsftp rpm. rpm -ihv vsftp*.rpm.

2. vi /etc/xinetd.d/vsftpd. Should look like this:

service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
server_args = /etc/vsftpd/vsftpd.conf
nice = 10
per_source = 5
instances = 50
log_on_success += PID HOST DURATION
log_on_failure += HOST
}


3. Add "vsftpd: ALL" to /etc/hosts.allow. Replace "ALL" with your subnet, machine list, or whatever if you don't want everyone to be able to connect. ALL will let every machine connect, but you still need a login and password.

4. Create an /etc/vsftpd/vsftpd.conf file like this:

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
pam_service_name=vsftpd
userlist_enable=YES
listen=NO
tcp_wrappers=YES

5. (optional) - If you want to ftp as root or any other user that is normally restricted, remove them from /etc/vsftpd.ftpusers.

6. (optional) - Do the same for /etc/vsftpd.user_list.

7. Type 'service xinetd restart' and you should be set.

This setup may open the ftp door further then you want to but should get you started.
# 6  
Old 04-12-2004

Hey man you are the best , thanks a lot
It worked just fine.
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

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

2. 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

3. 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

4. Solaris

Passwordless FTP connection

Hello, Can someone help me in getting a passwordless FTP conncetion ? It works if I do it as myself, but I need to be user1 when I do it, not myself. When I do it as user1, it asks for user1 password, which we don't have. All in all, ftp myserver.com works on all other servers when I'm... (5 Replies)
Discussion started by: aksijain
5 Replies

5. Solaris

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... (4 Replies)
Discussion started by: labdakos
4 Replies

6. UNIX for Dummies Questions & Answers

FTP Connection

Hi, Anyone encounter whereby when you FTP from an Unix server (Solaris 8) to another server (Window Server 2003), you tend to wait a long while when you do a "ls" and you get a timeout after that. However, when you FTP again and do a "ls", the result of "ls" shown immediately. All connection are... (5 Replies)
Discussion started by: ahlude
5 Replies

7. Solaris

Usb to serial connection to Sun Enterprice 450

Hi all, I must connect my PC (Windows 2000) to Sun Enterprise 450 (4 X UltraSPARC-II 400Mhz) for Solaris 10 Installation. My PC doesn't have a serial port therefore I must use USB port. How can I connect USB port of my PC to the serial port (DB 25) of Sun 450? Will be there any problems with... (3 Replies)
Discussion started by: Sunb3
3 Replies

8. SCO

ftp connection

I have problem with ftp connection on SCO UNIX 5.0.7, it is work slowly. How I can make accelerate. (6 Replies)
Discussion started by: draganmi
6 Replies

9. Cybersecurity

FTP Connection

I just started a new job and inherited a Fedora core 3 server. I wanted to open the ftp ports and I wanted to verify this code before I mess things up. From my reading the two lines below should allow ftp access can anyone confirm my attempt. iptables -A INPUT -p tcp - sport 21 -m state - state... (0 Replies)
Discussion started by: mungaz
0 Replies

10. UNIX for Dummies Questions & Answers

FTP on Redhat Linux 9

Anyone know how to get FTP up and running on a fresh install of RedHat Linux 9? Thanx, Aaron (2 Replies)
Discussion started by: Spetnik
2 Replies
Login or Register to Ask a Question