Below command change from ec2-user to root user
#sudo su –
Tutorialshore
Below command change from ec2-user to root user
#sudo su –
#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
Use below command to install Send Mail Email
# sudo yum install sendmail
# sudo yum install mailx
# mail -v test@techonomaniya.com (ctrl+D)
subject: mail testing
tetstinng
it will send mail to test@techonomaniya.com
You can use below SSH command to check os version in linux
#cat /etc/redhat-release