How to change the root Password using SSH

Changing your Root Password Using SSH


This article will show you how to change the root password for your Root Server using SSH



For security reasons we recommend you change the master password during your first SSH session.

To change your password, enter the command

passwd

root in the prompt which displays, for example root@yourserver. In the three prompt lines which follow, insert the information Linux® asks for, i. e.:

*
Enter existing login password:

Asks you to enter your current root password;
*
New password:

Asks you to enter your new password, and
*
Re-enter new password:

Asks you to re-enter your new password.



Once you have done this, you will have changed your master password for your server successfully. Please make a note of the changed access data and make sure to keep it safe from unauthorized access.

Please Note:
Make sure you remember the new password you have chosen. In the event of losing your password, accessing your server — even by our technicians — will be absolutely impossible.

Was this answer helpful?

 Print this Article

Also Read

Used And Free Memory

What's going on? Linux is borrowing unused memory for disk caching. This makes it looks like you...

PHP Increase Upload File Size Limit

Your php installation putting limits on upload file size. The default will restrict you to a max...

CentOS / Redhat: Install nginx As Reverse Proxy Load Balancer

nginx is a Web and Reverse proxy server. Nginx used in front of Apache Web servers. All...

SUSE Linux Restart / Stop / Start Network Service

Task: Start Network Service # /etc/init.d/network start # /etc/init.d/network start eth0 Task:...

Bash Shell Generate Random Numbers

How do I create or generate random numbers (sequence of numbers that lack any pattern), under...