Linux Change Password Using passwd Command Over SSH

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

  1. Connect to the remote Linux server using ssh:
ssh username@remote-server-ip-address
  1. Run the following command to change the password:
passwd
  1. You will be prompted to enter the current password and then the new password twice to confirm.

After successfully entering the current and new passwords, the password for the user will be changed.

Leave a Comment