How to change SSH password from CLI - SSH Tips

Mini Gupta
Posts: 1
Joined: Sat Nov 02, 2019 5:40 pm

How to change SSH password from CLI - SSH Tips

Post by Mini Gupta »

Are you the security guy of your server? If yes, then below is single line simple command to edit / change your current SSH password you have on your Linux server / machine (CentOS Tested) through shell via SSH:

SSH Command: passwd

Process:
Open SSH Shell
Login to your server
Enter passwd command
Will ask you to enter Current Password
Then will ask you to enter New Password
Now finally you will be asked to re-enter New Password

Tags: