Theme editor

Guide Linux How to Change SSH Passwords?

SecureOptimize

🐺⚔️ 𝐎𝐥𝐝 𝐖𝐨𝐥𝐟 ⚔️🐺
Corporate User
Thread owner

🔑 How to Change Your SSH Password​

SSH (Secure Shell) is the protocol you use to securely log in and control your server. Because it provides direct, powerful access to your system, your SSH password must be strong and secure.



If it's time to update your password (which you should do regularly!), the process is very simple.

Step 1: 🖥️ Connect to Your Server​

First, open your terminal and connect to your server using your current credentials.
Code:
ssh your_username@server_ip_address

Step 2: 🔐 Use the 'passwd' Command​

The command you use depends slightly on who you are logged in as.

If you are logged in as a regular user (e.g., ubuntu or jetto), just type this command:
Code:
passwd

If you are logged in as a regular user but you have sudo privileges and need to change the main root user's password, you'll use sudo:
Code:
sudo passwd root

If you logged in directly as root in Step 1, the process is even simpler. Just type:
Code:
passwd

jetto-linux-root-password-reset.gif
 
Last edited by a moderator:
Back
Top