Sign in

Reset SSH user password

documented

Rotate the SSH user password and return the new password.

POST /wpcom/v2/sites/{wpcom_site}/hosting/ssh-user/{ssh_user}/reset-passwordSSH Managementno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl \"https://public-api.wordpress.com/wpcom/v2/sites/{{$wpcom_site}}/hosting/ssh-user/{{$ssh_user}}/reset-password\" \
  -X POST \
  -H \"Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}\" \
  -H \"Content-Type: application/json\" \
  -H \"Accept: application/json\" \
  -d '{}'