Article ID: 114665, created on Aug 28, 2012, last review on Nov 25, 2015

  • Applies to:
  • Plesk


I have created SSH users in Plesk . When I try to provide them the ability to log in without a password but with an SSH public key, it does not work.


The home directory of each SSH user in Plesk is write-protected.


Since Plesk 12.0.18 and above such functionality can be managed with SSH Keys Manager extension. Go to Home > Extensions > Extenstions Catalog and install SSH Keys Manager

For older Plesk versions use the following workaround:

  1. Edit /etc/ssh/sshd_config. Add this line or change an existing one to the following:

    AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2 %h/private/.ssh/authorized_keys

    This will make SSH search for the .ssh folder in the private directory of each user not only for the root home directory.

  2. Save the file and restart the sshd:

    # service sshd restart

Then, to use SSH public key customer has to add an authorized_keys file. It should be done as follows:

  1. Log into customer account under provided SSH user and run these commands:

    # cd private
    # mkdir .ssh
    # chmod og-xrw .ssh
  2. Copy authorized_keys file to the created .ssh directory.

56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c

Email subscription for changes to this article
Save as PDF