Linux

Ubuntu enable root login and remote putty

Ubuntu enable root login and remote putty





Ubuntu enable root login and remote putty
Ubuntu enable root login and remote putty

When you install Ubuntu, first, do you face with remote login with putty? Now you can do it, we will show you how to enable root login on Ubuntu and remote putty, so it is easy for you.
First, you need to download putty and pass IP address Ubuntu and use account for login, example (my account is username: Twelveshow, password:12345). After that you need to log in root user and visit address /etc/ssh/sshd_config.

$ sudo nano /etc/ssh/sshd_config

#Authentication:
#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

You need to change #PermitRootLogin no to PermitRootLogin yes and Press key: Ctrl + C and type Y for save and command on the bellow for restart ssh service.

$ sudo /etc/init.d/ssh restart
or
$ sudo service ssh restart
or
$ sudo systemctl restart ssh

Ubuntu enable root login and remote putty
Ubuntu enable root login and remote putty

If you want your remote control is safe you need to change port number #port 22 to port 9999 or other ports which you have and you need to know number of that port.

Ubuntu change port number
Ubuntu change port number

CONCLUSION
We hope that the showing these will help you to gain more knowledge and work and we see that the Putty is used by worldwide and free license, so we recommend to use it.

Leave a Reply

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

Most Popular

To Top