i’ve built a home ftp server in order to access some of my files from anywhere. im running SUSE 11.0. ive setup vsftpd through the command line and configured the firewall according to guides on the internet. the only way to connect to the server is through port 22. how can i change it to access the server through port 21?
to make this easier. i disabled the firewall and managed to connect through port 21 which proves i need to give ftp access through the firewall. what do i need to change in the firewall to access the ftp through port 21?
Go to Yast → firewall → allowed services. Use the drop-down feature to select vsftpd server and “add” it.
i’ve added vsftpd in allowed services in the firewall. but still not any luck. which lines should i edit in the /etc/sysconfig/SuSEfirewall2 file?
Why not use the existing ssh service for access via sftp? Lots of clients on many platforms support sftp, e.g. filezilla, gftp, etc. Sftp sessions are protected by ssh encryption, unlike ftp sessions which go in plaintext. An evil person on the route between your client and server could easily see your login password.