SSH access to the server for FTP user changes unexpectedly

Created:

2017-07-31 20:24:52 UTC

Modified:

2017-08-16 17:08:51 UTC

0

Was this article helpful?


Have more questions?

Submit a request

SSH access to the server for FTP user changes unexpectedly

Applicable to:

  • Plesk for Linux

Symptoms

  • Action log Plesk > Tools & Settings > Action log shows that changes were made directly from the server by the admin user:
    127.0.0.1 admin 'Update Physical Hosting' ('Client GUID': 'f68a647f-120b-40ce-b71d-1df69226304d' => 'f68a647f-120b-40ce-b71d-1df69226304d', 'Domain GUID': 'f6ffd3d7-0a7a-4179-8f1b-25769526b7fb' => 'f6ffd3d7-0a7a-4179-8f1b-25769526b7fb', 'Domain Name': 'example.com' => 'example.com', 'System Shell': '/opt/psa/bin/chrootsh' => '/bin/false')
  • Following entry in /var/log/plesk/httpsd_access_log shows that service plan has been synchronized:
    127.0.0.1 - -"GET /admin/customer-service-plan/sync-status/servicePlanId/6 HTTP/1.1" 200 44 "https://203.0.113.2:8443/admin/customer-service-plan/list" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/203.0.113.2 Safari/537.36" "-"'/admin/customer-service-plan/sync-status/servicePlanId/6' '' '/opt/psa/admin/htdocs'

Cause

The subscription has been synchronized with the service plan which is set not to provide server access for FTP users over SSH.

Resolution

Lock subscription for synchronizing with the service plan:

  1. Connect to the server using SSH .
  2. Enter psa database:
    # plesk db
  3. Find the ID of the required subscription:
    SELECT id,name FROM domains WHERE name="example.com";
    +----+-------------+
    | id | name |
    +----+-------------+
    | 14 | example.com |
    +----+-------------+
    1 row in set (0.00 sec)
  4. Update Subscriptions table where object_id=id from the previous step:
    UPDATE Subscriptions SET locked="true" WHERE object_id=14;
Have more questions? Submit a request
Please sign in to leave a comment.