Change or disable a UNIX user's password
Need to rotate a UNIX user's password, or turn off password login altogether so only SSH keys work?
This article walks you through both. They're the same dialog in Core.
Which one you're here for
Both live in the same place: the UNIX user's 'SFTP & SSH' tab, 'Password Authentication' panel, 'Update password' button.
- Change the password — four clicks.
- Disable password login — attach an SSH key first, or you lock yourself out.
Where to find it
Directly
- Navigate to 'Advanced' > 'UNIX Users'.
- Select the UNIX user.
- In the left sidebar, click 'SFTP & SSH'.
Via the project
- Navigate to 'Projects'.
- Select the project.
- Navigate to 'Advanced'.
- Under the 'UNIX User' tile, click 'Manage'.
- In the left sidebar, click 'SFTP & SSH'.
Change the password
- Click 'Update password' on the 'Password Authentication' panel.
- Leave 'Enable Password Authentication' on.
- In 'New Password', type the new password or click 'Generate' for a random 24-character one.
- Click 'Save'.
Minimum length: 24 characters.
Copy it before saving
Once saved, the password is hashed and the dialog never shows it again. If you used 'Generate', copy the value before you click 'Save'.
Disable password authentication in full
Add a key first
Make sure at least one working SSH key is attached to the user. Otherwise you lock yourself out, and the only way back in is re-enabling the password from Core.
- Click 'Update password' on the 'Password Authentication' panel.
- Turn 'Enable Password Authentication' off. The 'New Password' field disappears.
- Click 'Save'.
The panel then shows 'Disabled'. From that moment:
- SSH and SFTP refuse password attempts for this user.
- Existing SSH keys keep working.
To re-enable later, set a new password through the same dialog. The previous password is not recoverable.
What the password does and doesn't cover
- Covers SSH and SFTP logins.
- SSH keys are separate. Adding a key does not disable the password, and changing the password does not affect existing keys.
- FTP is unrelated. Each FTP user is its own object with its own password, set under the UNIX user's 'FTP' tab. Disabling password authentication on the UNIX user has no effect on FTP.