The first step to enabling Root login over SSH is to enable the Root account. For many Linux distributions (Ubuntu and others like it), Root isn’t active, for security. Instead, users do everything via sudo privileges.
Here’s how to enable Secure Shell (SSH) service in Ubuntu 16.04 Xenial Xerus, the new LTS release, to allow secure remote login and other network communications.
Ubuntu provides OpenSSH (OpenBSD Secure Shell) in its universe repositories, which is a suite of security-related network-level utilities based on the SSH protocol.
1. To install it, open terminal (Ctrl+Alt+T) or log in Ubuntu server and run command:
2. After that, you should have SSH service enabled in your system, you may check its status by running command:
3. You may change some settings (e.g., the listening port, and root login permission) by editing the configuration file via command:
On Ubuntu desktop, you may use
gedit instead of nano :
Finally apply the changes by restarting or reloading SSH:
For more, read the official manual page.
I´d like to enable the
ssh root access on Ubuntu 14.04. Editing the /etc/ssh_config (PermitRootLogin yes) didn't affect anything.
user283163user283163
5 Answers
Simply adding a password for root is not enough for Ubuntu 14.04 Server.
You also need to edit
/etc/ssh/sshd_config , and comment out the following line:
Just below it, add the following line:
Then restart SSH:
For Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-59-generic x86_64) bdepbdep
PermitRootLogin without-password has been replaced by PermitRootLogin prohibit-password .
2,04111 gold badge55 silver badges22 bronze badges
You need to setup a password for the root account and then it will work.
Enter same password twice.
P.S. After modifying /etc/ssh/sshd_config don't forget to reload the openssh server.
terdon♦
70.9k1313 gold badges148148 silver badges231231 bronze badges
![]()
cioby23cioby23
With Ubuntu 14.04 Server.
Set the password
sudo passwd
Changes in /etc/ssh/sshd_config
Change PermitRootLogin
PermitRootLogin yes
You may also have to check value of PasswordAuthentication. If it is set to no then set to yes
PasswordAuthentication yes
Then restart SSH:
service ssh restart
Pandurang PatilPandurang Patil
For 14.04 you would have to comment below line in /etc/ssh/sshd_config
JitendraJitendra
For me, none of these steps worked, I've even tried something I wouldn't ever try for something else then a toy vm:
PermitRootLogin without-password
The only thing that worked for me was disabling the PAM module for this:
This option is normally at the very end of the file. To be honest, I don't know the real drawbacks of this, but since you're not supposed to allow root login online, I guess it's okay for a private dev-vm.
Nevertheless, set a strong password, always. Nope this is not an exception. Not even only this time...
KjellskiKjellski
![]() protected by Community♦Nov 6 '14 at 14:39
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead? Not the answer you're looking for? Browse other questions tagged 14.04sshroot or ask your own question.Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |