Plesk

Unable to pull updates from Git repository in Plesk: Permission denied: Could not read from remote repository

Symptoms

Cause

This is a Plesk bug with ID PPPM-7291, which is planned to be fixed in one of the future product updates.

Resolution

As a workaround, perform the following steps:

  1. Connect to the Plesk server via SSH.

  2. Place the SSH keys for authentication in the home directory of an additional FTP user from the error (e.g. content of /var/www/vhosts/example.com/.ssh/ directory to /var/www/vhosts/example.com/sub.example.com/.ssh/):

    # mkdir -p /var/www/vhosts/example.com/sub.example.com/.ssh/
    # cp -ap /var/www/vhosts/example.com/.ssh/* /var/www/vhosts/example.com/sub.example.com/.ssh/

  3. In case file is present, make sure that correct permissions are set:

    # chown jdoe:psacln /var/www/vhosts/example.com/sub.example.com/.ssh/id_rsa
    # chmod 600 /var/www/vhosts/example.com/sub.example.com/.ssh/*

    Where jdoe is the system user of the subscription.

Exit mobile version