Jump to content

  •  

Photo
- - - - -

How to Enable root Login in ssh

Ubuntu Server 14.04

  • Please log in to reply
No replies to this topic

#1 Wilson18

Wilson18

    Administrator

  • root
  • 112 posts
  • LocationUniversity of Birmingham

Posted 07 June 2014 - 09:48 PM

In this tutorial, I will be showing you how you can enable root login with openssh-server. To do this, you will need to be logged in to the server as root (or sudo'd). Once in, you will need to edit the ssh config file to permit root login

nano /etc/ssh/sshd_config

In this file, you will need to search for the line which says PermitRootLogin. You can do this by using the Ctrl+W command and typing it in. Once you have done this, you will need to ammend the line so that it reads

PermitRootLogin yes 

If this has a # before it, you will need to remove this as it is commenting it out. Once you have done this, you will need to restart ssh. 

service ssh restart

You should now be able to log in. If this is a new install and you have not yet enabled root logins on the system, you may want to follow this tutorial which will show you How to Enable root Login on Ubuntu Server

 


List what you read?

Check me out on: YouTube, Twitter, Facebook, Google+






Also tagged with one or more of these keywords: Ubuntu Server 14.04