yum -y install proftpd
nano /etc/shells
Add this line in /etc/shells file (sudo gedit /etc/shells to open the file) : /bin/false
useradd userftp -p 'mypass' -d /home -s /bin/false
passwd userftp
/etc/init.d/proftpd start
i use this everytime i reinstall the os
this is for centosCode:yum -y install proftpd nano /etc/shells Add this line in /etc/shells file (sudo gedit /etc/shells to open the file) : /bin/false useradd userftp -p 'mypass' -d /home -s /bin/false passwd userftp /etc/init.d/proftpd start
Status: Connecting to 176.102.65.146:21...
Status: Connection established, waiting for welcome message...
Response: 220 FTP Server ready.
Command: USER mahesh
Response: 331 Password required for mahesh
Command: PASS ********
Response: 530 Login incorrect.
Error: Critical error
Error: Could not connect to server