Operating System - Linux
1827807 Members
2241 Online
109969 Solutions
New Discussion

Re: Change Default FTP port

 
Ed Wilkinson
New Member

Change Default FTP port

Hi,

How/Where would I change the default ftp port(21) to something else? I'm running vsftpd and Red Hat 9.0. Thanks.
4 REPLIES 4
Balaji N
Honored Contributor

Re: Change Default FTP port

may be this link helps.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x8e4d28c64656d71190080090279cd0f9,00.html

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
twang
Honored Contributor

Re: Change Default FTP port

steps:
1. setup another port in /etc/services:
xftp 21000/tcp # File Transfer Protocol (Control)

2. edit /etc/inetd.conf file, add:
xftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

3. read config by runing:
# inetd -c

4. test ftp service
Sunil Sharma_1
Honored Contributor

Re: Change Default FTP port

/etc/services

and restart xinetd services

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Steven E. Protter
Exalted Contributor

Re: Change Default FTP port

You might be better off dropping ftp all together.

You can use openssh(install cd's) and require your users to use a secure ftp client. There are dozens of free sftp clients at tucows or download.com

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com