Change password using passwd over SSH session


To totally unlock this section you need to Log-in


Login

For security reasons, an ssh account has limited access to the server. You can only upload or download files using scp, sftp, rsync and so on. You may execute limited number of commands such as passwd, ls and so on.

Also, it is a good idea to change your password every month or at least every four months. Make sure you use combination of alphabets (upper and lower case characters), numbers, and special characters as a password to safeguard your account. You should choose a password of at least ten characters.

Syntax

The syntax is:

 
ssh -t user@server-name-here passwd
ssh -t [email protected] passwd
ssh -t [email protected] passwd
ssh -t [email protected] /bin/passwd

Where:

-t: This option force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs (such as passwd) on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty.