| |

How to Change Linux Account Password Through SSH: A Beginners’ Tutorial

People are sometimes given access to Linux/Unix and asked to change their initial passwords. But for beginners, changing a Linux/Unix password is not an easy task, especially when there is only SSH log on allowed to the Linux/Unix server. This post introduces how to change password of user USER on host HOST remotely using SSH.

Steps are as follows. Note: you will need to replace HOST and USER with the actual username and hostname you are using.

Step 1. Log on the HOST as USER.

On Linux and Mac OS X, open a terminal and run

ssh USER@HOST

If it asks whether your are continuing connecting if you do this for the first time, you can enter “yes” to continue.

It will display

USER@HOST's password:

You will need to enter the password. You can’t see what you have entered here.

Step 2. Change the password

In side of the SSH login, run

passwd

It will display

Changing password for user USER.
Changing password for USER.
(current) UNIX password:

Enter your old password here. You can’t see what you have entred too.

It will then display

New password:

Enter new password. It will then display

Retype new password:

Enter new password again

If you see

passwd: all authentication tokens updated successfully.

or

passwd: password updated successfully.

Step3. Exit the SSH session

You can exit the SSH session by running

exit

Similar Posts

  • How to make Fedora Linux not clean some files in /tmp/?

    On my Fedora 20, I find that the system automatically clean up file under /tmp/. This is convenient. However, it cause some problems for some programs. For example, HDFS puts its DataNode pid file under /tmp/ by default like hadoop-hadoop-datanode.pid. After it is cleaned up, the hadoop-daemon.sh script will consider there is no DataNode running….

  • Fedora 中文字体设置

    Fedora 一直有中文字体难看的问题, 尤其是在英文环境中. 使用本文中的配置方法可以得到令人满意的中文效果. 此方案中使用字体都为开源且在Fedora源中自带. 此方案对 Fedora 9 – 20 有效. 对于后续版本支持我会确认并更新此文章. 此方案对Gnome, KDE都有效. Firefox 中也有中文难看的问题, 后面会提到. 快速配置方法 如果你想马上配置好,请使用如下命令。此方法测试使用效果良好。 # yum install cjkuni-ukai-fonts cjkuni-uming-fonts # wget https://raw.githubusercontent.com/zma/config_files/master/others/local.conf \ -O /etc/fonts/local.conf 相关英文字体配置可以参考:Improving Fedora Font Rendering with Open Software and Fonts Only. Fedora 系统中文字体的配置方案 使用uming和ukai字体,即AR PL UMing CN等. 中文字体和等宽字体效果如图所示(点击看大图, Firefox 中文字体设置在后面会提到). 方法如下: 安装字体 首先安装这两个字体: cjkuni-ukai-fonts cjkuni-uming-fonts (在Fedora…

  • Installing Latex and Compiling a Latex Docuent in Linux

    Latex is a popular document preparation system that is widely used for creating scientific and technical documents. Compiling Latex documents on Linux is a straightforward process that requires only a few Latex packages and a set of commands. By following the steps outlined in this post, you can easily compile Latex documents on your Linux…

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *