Check what ports are standard for a given service
cat /etc/services | grep ftp
View running service
netstat -antlp | grep ftp
Install vsftpd on your virtual private server in the command line:
sudo yum install vsftpd
Install the FTP client, so that we can connect to an FTP server:
sudo yum install ftp
Open up the configuration file:
sudo vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO (vsftpd will not allow anonymous, unidentified users to access the VPS's files)
local_enable=YES
chroot_local_user=YES (all the local users will be within their chroot and will be denied access to any other part of the server.)
Add following lines to end of the file
pasv_enable=YES
pasv_min_port=64000
pasv_max_port=64321
port_enable=YES
Restart vsftpd:
sudo service vsftpd restart
To vsftpd runs at boot, run chkconfig:
chkconfig vsftpd on
cat /etc/services | grep ftp
View running service
netstat -antlp | grep ftp
Install vsftpd on your virtual private server in the command line:
sudo yum install vsftpd
Install the FTP client, so that we can connect to an FTP server:
sudo yum install ftp
Open up the configuration file:
sudo vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO (vsftpd will not allow anonymous, unidentified users to access the VPS's files)
local_enable=YES
chroot_local_user=YES (all the local users will be within their chroot and will be denied access to any other part of the server.)
Add following lines to end of the file
pasv_enable=YES
pasv_min_port=64000
pasv_max_port=64321
port_enable=YES
Restart vsftpd:
sudo service vsftpd restart
To vsftpd runs at boot, run chkconfig:
chkconfig vsftpd on
No comments:
Post a Comment