Help Center/ ModelArts/ Troubleshooting/ DevEnviron/ SSH Faults/ Notebook Access Is Normal on ModelArts but Error "Permission denied (publickey)" Is Displayed When SSH/VS Code Is Used to Access a Notebook Instance
Updated on 2025-11-18 GMT+08:00

Notebook Access Is Normal on ModelArts but Error "Permission denied (publickey)" Is Displayed When SSH/VS Code Is Used to Access a Notebook Instance

Symptom

The notebook instance can be accessed on the ModelArts console, but an error is reported when the notebook instance is accessed using SSH/VS Code.

Permission denied (publickey)
Figure 1 Error message example
Figure 2 Error message example

Possible Causes

Run passwd -S ma-user.

  • If L is displayed in the result, the user is locked. Run passwd to unlock the user.
  • If P is displayed in the result, the user status is normal. In this case, check other possible causes.
    Figure 3 Unlocking a user

Solution

Open Terminal in the notebook instance. Run the following passwd commands to unlock the user:

passwd -S ma-user
passwd ma-user Enter the password.
passwd -S ma-user