• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question SFTP access for additional FTP accounts – Public Key authentication?

TorbHo

Regular Pleskian
Server operating system version
Ubuntu 24
Plesk version and microupdate number
Plesk 18.0.80 Update 3
We are currently using Plesk 18.0.80 Update 3.

According to the changelog, this version introduces the following feature:
SFTP access for additional FTP accounts via a separate ProFTPD

We are trying this new feature, and SFTP access for additional FTP accounts works correctly when using password authentication.

However, we have not been able to authenticate using an SSH public key. Public key authentication works for our regular SSH accounts, but not for the additional FTP accounts using the new SFTP feature.
  • We added the public key using the Plesk extension "SSH Keys Manager".
  • We have added our public key using the Plesk extension "SSH Keys Manager".
  • Public key authentication itself is working correctly when connecting via the standard SSH/SFTP port 22. However, it does not work when connecting through the new SFTP port configured under:
    Tools & Settings → Security Policy

The configured port is open in the firewall and the SFTP connection itself can be established successfully. However, when connecting through this port, the server always asks for the account password instead of authenticating with the public key.

Does the new SFTP functionality for additional FTP accounts support public key authentication, or is it currently limited to password authentication only?

If public key authentication is supported, is there any additional configuration required in Plesk/ProFTPD to enable it for these accounts?
 
Hi, @TorbHo . This is expected behavior. SFTP for additional FTP accounts currently supports password authentication only. These additional FTP accounts are, by definition, FTP accounts. SFTP on separate port handed by ProFTPd doesn't work OpenSSH authorization keys.

If key-based login is needed, it would need to go through the system SSH user (e.g. the subscription's main system user).
 
@Sebahat.hadzhi thank you for your response.

That’s very unfortunate, as setting up SSH users with the appropriate system-level access permissions is quite complicated and time-consuming.

I had hoped the new system would offer more in this regard. As it stands, I’m struggling to see the real added value if it essentially works like the regular FTP user account.

Using a username and password for authentication is simply no longer considered a modern or sufficiently secure approach. We are therefore trying to migrate everything to more secure, modern authentication methods, and I had hoped that this new feature would support us in doing exactly that.
 
Back
Top