Operating System - Linux
1822349 Members
4731 Online
109642 Solutions
New Discussion юеВ

changing the ftp port in redhat linux 9

 
SOLVED
Go to solution
Binu_5
Regular Advisor

changing the ftp port in redhat linux 9

Hi All

I need to change the ftp port in redhat linux from 21 to 65530 ... I have chaged in /etc/services and restarted the server ..
but it is not working ...The ftp service which is started is vsftp

Please help

Binu
3 REPLIES 3
Patrick Terlisten
Honored Contributor
Solution

Re: changing the ftp port in redhat linux 9

Hello Binu,

the /etc/services is only a file which maps portnumbers to human readable names. It├В┬┤s used for example by netstat.

If you are running vsftp standalone, use the "listen_port" directive in vsftpd.conf. If you start vsftp through inetd or xinetd, change the listen port in the serviceconfiguration of inetd / xinetd.

Regards,
Patrick
Best regards,
Patrick
Alexander Chuzhoy
Honored Contributor

Re: changing the ftp port in redhat linux 9

make sure you have a line
listen=YES which makes vsftpd to run in standalone mode
and append a line
listen_port=65300
then restart the vsftpd service with
service vsftpd restart
Binu_5
Regular Advisor

Re: changing the ftp port in redhat linux 9

Hi All
I have appened the vsftp.conf file
with the following entry
listen_port=65300
then restart the vsftpd service with
service vsftpd restart also the changed the port no from 21 to 65300 inthe /etc/services

then restart the vsftpd service with
service vsftpd restart

It worked

Thanks for the help

Binu