Found this on Search400 …
… how to change your FTP server to use a port other than the default port of 21. Ports in the range of 0-1023 are reserved and well-known ports, with port 21 being the established standard for FTP. The reason most people want to do this is to make it harder for someone to gain unauthorized access to your FTP server.
Although this may make it more difficult for someone to discover that you are running an FTP server, this by itself will not prevent someone from being able to discover and potentially hack into your FTP server. If you decide to use this technique, keep in mind that this is no substitute for other types of security and should be viewed as only a very small piece of your security infrastructure. If you have existing FTP programs or scripts, you will need to change them to access your new FTP port.
For anyone who has tried to do this, you may have noticed that the port can’t be changed using the CHGFTPA command. Here is how to make the changes.
- Enter the command WRKSRVTBLE and scroll down to the services that are labeled ftp-control.
- Display and print these entries.
- Use the command ADDSRVTBLE to duplicate these entries exactly as they appear, with the exception that you will specify a new port number. To get lowercase values to stay lowercase, make sure they are enclosed in single quotes. When you specify your new FTP port, you should avoid using the reserved ports of 0-1023. You should also try to avoid using other ports that are already defined.
- Compare your new entries to the existing entries that are on port 21 to ensure that everything is an exact match.
- Delete your existing entries for service ftp-control that is on port 21.
- End and restart TCP/IP.
- If you wish, entries labeled ftp-data can also be changed in a similar manner.
When you access FTP from the AS/400, you will now have to specify the port. From the AS/400 the FTP command would look like this:
FTP RMTSYS (‘10.10.10.10’) PORT (21021)
From the DOS prompt, it would look like this:
ftp> open 10.10.10.10 21021
David is a Principal Software Engineer for PTC, Integrity Business Unit. He cut his teeth on the S/36 and has more than 25 years of experience on the IBM i / System i / iSeries / AS400. He primarily works in Java and ILE RPG specializing in cross platform integrations. David has received the COMMON Distinguished Service award and was named an IBM Power Systems Champion. David is an active volunteer with the American Diabetes Association's Tour de Cure fundraising bike ride. He is currently captain of Team RED Chicago. David runs and maintains midrange.com. His personal blog is Geeky Ramblings.