• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

Question Restrict the access to Home Directory via SFTP

Thomas Oryon

Basic Pleskian
Server operating system version
Windows 2022 server
Plesk version and microupdate number
18.0.56
Hello Support,

We are using Plesk Windows Server and have set up SFTP access with chroot restrictions using OpenSSH. Our current setup restricts each user to a specific directory by manually adding entries in the sshd_config. Kindly refer to the below snippet for your reference.

+++
Match User ftpuser
ChrootDirectory C:\inetpub\vhosts\yourdomain.tld
ForceCommand internal-sftp
AllowTcpForwarding no
+++

This method works fine for a few users, but it becomes difficult to manage when there are many users. Manually adding each user is not practical for a mass hosting service.

Kindly let us know if Plesk has any built-in tools, extensions, or scripts that can help with this.

Awaiting your replay.
 
We need to know the below details regarding the SFTP.

+++
1. How to connect sftp for admin user what are the requirements - using Plesk username passwors, we need to login to sftp and what are all the req
2. Open SSH connect via main account - What option is enabled while we install opensssh and how sftp works here
3. For Windows and Linux Plesk servers, When we create the FTP accounts in Plesk panel and how they are accessing the FTP via SFTP
4. What is the steps need to for SSH client setup (SFTP) and how the Plesk user are able to connect via SFTP - what happens if we off and on and how it works
+++
 
We need to know the below details regarding the SFTP.

+++
1. How to connect sftp for admin user what are the requirements - using Plesk username passwors, we need to login to sftp and what are all the req
2. Open SSH connect via main account - What option is enabled while we install opensssh and how sftp works here
3. For Windows and Linux Plesk servers, When we create the FTP accounts in Plesk panel and how they are accessing the FTP via SFTP
4. What is the steps need to for SSH client setup (SFTP) and how the Plesk user are able to connect via SFTP - what happens if we off and on and how it works
+++
 
You've posted the same questions several times, but nobody replied. You might want to rephrase your questions with additional details making it easier for other users to understand your objectives and exact needs.

I also want to emphasize that, although Plesk staff tries to help answering questions, this is a community forum. If you like or need Plesk support engineers to answer specific you might want create a support ticket instead. Community users are generally quite willing to answer questions from new users, but I suspect that your questions aren't well understood (at least not by me).

None the less, let me try to anser your questions best I can.
1. How to connect sftp for admin user what are the requirements - using Plesk username passwors, we need to login to sftp and what are all the req
Admin users do not have SSH or FTP access. You can either use Root to get full access the server, create system users outside of Plesk with (or without) root privileges. Using the root user to access the server is generally discouraged due to security concerns.

2. Open SSH connect via main account - What option is enabled while we install opensssh and how sftp works here
I don't understand this question. Can elaborate on your question?

3. For Windows and Linux Plesk servers, When we create the FTP accounts in Plesk panel and how they are accessing the FTP via SFTP
I don't understand this question. Perhaps you can search the Plesk documentation to find an answer on your question regarding FTP via SFTP. If the documentation does not provide an answer, please rephrase your question.

4. What is the steps need to for SSH client setup (SFTP) and how the Plesk user are able to connect via SFTP - what happens if we off and on and how it works
I don't understand this question. Can elaborate on your question?
 
Hello Support,

I need to know the below details.

1. How to connect to SFTP for an admin user in Plesk?
- We need to log in to SFTP using the Plesk admin username and password.
- What are the requirements for this?
- Does the admin user have direct SFTP access, or is there any restriction?
- Do we need to enable any specific service or setting in Plesk to allow SFTP access for the admin user?
- Is SFTP enabled by default, or do we need to configure OpenSSH or another service?
- Does Plesk use the same authentication mechanism for FTP and SFTP, or do they have separate configurations?

---

2. How does OpenSSH connect via the main account in Plesk?
- When installing OpenSSH, what options or features are enabled by default in Plesk?
- Does Plesk automatically configure SSH access for users upon installation of OpenSSH, or do we need to manually enable it?
- How does SFTP work with OpenSSH in Plesk?
- Is SFTP enabled by default when OpenSSH is installed?
- Do we need to configure any specific permissions for Plesk users to allow SFTP access?
- How can we restrict SFTP access to certain users while keeping SSH access enabled for others?

---

3. How do FTP accounts work in Windows and Linux Plesk servers, and how do they access SFTP?
- When we create FTP accounts in the Plesk panel:
- Are those accounts automatically granted SFTP access?
- If not, how do we enable SFTP for an FTP account?
- What are the differences between FTP and SFTP access in Plesk for Windows and Linux servers?
- For Windows servers:
- Does Plesk use Microsoft IIS FTP Server for FTP accounts?
- If IIS FTP is enabled, does Plesk support SFTP on Windows, or do we need an external service like OpenSSH?
- For Linux servers:
- Is SFTP access granted by default for all FTP accounts?
- Can we use chroot jails to restrict SFTP users to specific directories? If yes, how we can setup this as default for all the Plesk FTP accounts?

Awaiting your reply.
 
Back
Top