Linux Change Password Using passwd Command Over SSH

‮‬https://www.lautturi.com
Linux Change Password Using passwd Command Over SSH

To change the password for a user on a Linux system using the passwd command over an SSH connection, you will need to log in to the system using an account with permission to change passwords.

To change the password for a user, follow these steps:

  1. Connect to the Linux system using an SSH client, such as ssh or putty.
  2. Run the passwd command followed by the username of the user whose password you want to change. For example:
passwd username
  1. When prompted, enter the current password for the user.
  2. When prompted, enter the new password for the user. Make sure to choose a strong and secure password.
  3. Re-enter the new password to confirm.

The password for the user will now be changed. Keep in mind that the passwd command can only be used to change the password for the current user or for a user with sufficient privileges. If you do not have permission to change the password for a user, you will need to use an alternative method or seek help from an administrator.

Created Time:2017-10-29 22:08:51  Author:lautturi