How to create an FTP account with SSH
Do you feel frustrated in front of the black screen of the Linux Command Terminal? You are considering your Dedicated Server purchase not so good on second thought? We are here to prove you wrong! Using our tutorials you can turn your daily administration work from a stresfull experience to an enjoyable one. We offer cheap, fast, stable and reliable Dedicated Servers as well as Virtual Private Servers and Semi-Dedicated Servers. The ResellersPanel is even offering you the chance to resell those Dedicated Hosting services in what has proven to be the most evolved and successful Free Reseller Hosting Program out there.
You can purchase your Dedicated Server with a Control Panel such as cPanel or DirectAdmin or the ResellersPanel Control Panel, but you can also decide that you do not need one. You will then have to learn some of the basics of Dedicated Servers administration, especially when you have only SSH on your side to pull things through. For example, you have a web site that you need to upload the data for, but you do not have an FTP account created for the user that will be hosting the web site. In this case, and in accordance to the tutorial 10 Useful SSH Commands [link], you can create an account on your Dedicated Server that will actually not only be an FTP Account, but will create the client's directory on the Server and will depending on your solution assign it with shell access level. Add the user account you want using the 'useradd' command
# useradd -u <username> -s /bin/false -d /home/username-s stands for no shell access - you do not want Then create a special group for that user.
# groupadd <groupname>Add a group for that user!
# gpasswd -a <username> <groupname>Add the user to the group you just created
># chgrp <groupname> /home/usernameto chown the directory to that group
# chmod g=rwx /home/usernameto chmod the directory with read, write, execute for the given group
# chmod +t /home/usernameWhen the sticky bit (+t) is set, only the item's owner, the directory's owner, or the superuser can rename or delete files.
Once you create the user, its group and set them up, the user will have access via port 21 (FTP) to the Server and if that Dedicated Server is running an FTP Server, you will be able to establish an FTP Connection successfully!