• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question How to setup a SFTP account in Plesk

onki

Regular Pleskian
Server operating system version
ubuntu 20.4
Plesk version and microupdate number
Obsidian 18.0.40
Hi,

I am in the need of a SFTP account on one of my domains.
There is no way to do so what I have tried so far.
Is it true that only regular ftp users can be setup at the moment?
I understand that SFTP has only parts of the name in common with FTP but SFTP is a very common thing for data transfer today.
Is there a hidden option or so in PLesk to setup SFTP accounts?

Best regards
 
Is there a specific reason you need another SSH account for use of FTP? If it's just because you want a secure way of transferring files, why not just create FTP accounts and enable FTP over TLS for the encryption?

 
Currently, SFTP is only available for the system user of the subscription (the first user account that owns the subscription). The reason for that is that SFTP is an SSH connection with FTP on top. FTPS is an FTP connection with SSL/TLS. IMHO for all common applications, FTPS is just as secure as SFTP, but that seems to be a matter of taste.
If you would like to see an option where you can add more SFTP user accounts to the same subscription, please vote for the feature request here:
 
I need SFTP for an external application that stores data on the server.
Use of FTP with TLS is not supported by this application.
Since this app has nothing to do with the web domain (website, mail etc.) I don't want to use the general login for safety reasons.

Best regards
Onki
 
If you have root access to your server, you can add a user account through the shell and use that account for sftp. It will then be completely independent from Plesk.
 
If you have root access to your server, you can add a user account through the shell and use that account for sftp. It will then be completely independent from Plesk.
Hi Peter,

I tried it doesn't work! Any other way / workaround, Pls do let me

Thanks & Regards
Shyam
 
What exactly doesn't work for you when trying this?
so basically every domain has one default user right SFTP which is accessible now we need additional user for the same but that additional user is only possible via FTP and not SFTP

When we try to connect the additional user via port 22 it shows EOF etc..

Thanks & Regards,
Shyam
 
Create the ftp account as usual. Make sure you set the domain as root not a publically accessible sub folder (bash history will be stored here)

now edit /etc/passwd change /bin/false to /bin/bash

restart ssh

now your ftp user can ssh /sftp into the box

not supported but works just fine.
 
Create the ftp account as usual. Make sure you set the domain as root not a publically accessible sub folder (bash history will be stored here)

now edit /etc/passwd change /bin/false to /bin/bash

restart ssh

now your ftp user can ssh /sftp into the box

not supported but works just fine.
no but doing this will give me root access to that user but we need to set specific directory access only and not the whole domain so yea..
 
Back
Top