How to create an FTP account with SSH

This tutorial will tell actually not only teach you how to create an FTP Account, but will also teach you how to 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/username

to chown the directory to that group

# chmod g=rwx /home/username

to chmod the directory with read, write, execute for the given group

# chmod +t /home/username

When 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!

 

  • 36 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

Common SSH Commands - Linux Shell Commands

ear. Updated: Jan 19, 2007: Added some new ssh commands for the linux shell.We've put together...

Can you install Ragnarok Private Server to my VPS for free?

Ragnarok Online Private Server installation, while possible to be run on our VPS, is not included...

How to change the root Password using SSH

This article will show you how to change the root password for your Root Server using SSH For...

VPS Reseller Demo

You may login and test our VPS Reseller panel below.SolusVM Reseller Control Panel URL:...

Enabling TUN/TAP

Make sure that a Jolly Works Hosting admin has enabled TUN/TAP for your VPS. Click here to...