Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change FTP Port?
#1
My website has been hacked and i assume it was because they got hold of my FTP username and password.

would i be able to change the FTP port from 21 to another number.

Restored from old drupal forum, for user uid:2736 username:MicroChip123
You may reset your password to access your new account here.
Reply
#2
Q. Because of security issues I would like to change vsftpd port 21. How do I configure vsftpd to use other ports instead of default TCP port 21.

A. vsftpd, which stands for Very Secure FTP Daemon, is an FTP server under Ubuntu, Fedora Core, Red Hat Enterprise Linux and a number of other distributions.

Changing default port is good idea.

All you need to do is edit the configuration file for vsftpd server. The default configuration file is /etc/vsftp/vsftpd.conf or /etc/vsftpd.conf.

First login as root user

Open vsftpd.conf file
# vi vsftpd.conf

Find line that read as follows
listen_port=21

Replace port 21 with new port such as 201
listen_port=201

Save and close the file. 201 is port number you can set it to whatever port you want. Please make sure no other service use 201 port.

Now restart vsftpd
# /etc/init.d/vsftpd restart

Client need to use port 21 while connecting to ftp server:
$ ftp ftp.myserver.com 201


source: http://www.cyberciti.biz/faq/change-vsftpd-ftp-server-port-21/

Restored from old drupal forum, for user uid:2736 username:MicroChip123
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping