Tuesday, March 3, 2015

Conectiong to ssh with root user Ubuntu



If you want to connect to Ubuntu using Root account follow this step.
Enable root account to remote access is not a good practice.  After configure the server make sure disable the access to root account.
  • First enable the root account  
$ sudo passwd root
  • edit the  ssh config file
         $ sudo nano /etc/ssh/sshd_config
  • change the following settings in sshd_config file
         # Authentication:
          LoginGraceTime 120
          PermitRootLogin yes
          StrictModes yes
  • restart the service 
         # sudo service ssh restart
  • Now try with Putty with the user root to connect the Ubuntu server.

  • to disable root access to ssh  change the sshd_config
         # Authentication:
          LoginGraceTime 120
          PermitRootLogin with-password
          StrictModes yes 



0 comments:

Post a Comment