How to install FTP and add user SSH command

#sudo yum install vsftpd

Open up the FTP ports on your instance

Also add port range 1024-1048

 

# sudo vi /etc/vsftpd/vsftpd.conf
Disable 
anonymous_enable=YES to(NO)
 
Add this end of the file
 pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048
pasv_address=<Public IP of your instance> (****public ip address)
 
local_root=/var/www/html (path of ftp)
 
 
# sudo /etc/init.d/vsftpd restart (restart service)
 
# sudo adduser vinee
# sudo passwd vinee(Set password)
#sudo vi /etc/vsftpd/vsftpd.conf
chroot_local_user=YES(un command security issue restrict users)
# sudo /etc/init.d/vsftpd restart
# find /var/www/html -type d -exec chmod 777 {} \; (permission)
 
#sudo usermod -a -G www vine

 

My Thought

Your email address will not be published. Required fields are marked *

Our Tool : hike percentage calculator