Dear visitor, in case we do not cover a topic you are looking for, then feel free to ask in our freshly created forum for IT-professionals for a solution. We hope our visitors can help you out with your questions. Have a good one. ~ Tom.

How to enable root login on FreeBSD 10

When I was testing my new FreeBSD 10 RC, I was not able to connect from remote machine using root user.

Using username "root".
Access denied
Using keyboard-interactive authentication.
Password for root@Freebsd10:Access denied

vi /etc/ssh/sshd_config

Find this line:

#PermitRootLogin no

and change it to:

PermitRootLogin yes

Now Restart sshd

root@Freebsd10:~ # /etc/rc.d/sshd restartPerforming sanity check on sshd configuration.Stopping sshd.Waiting for PIDS: 1698.Performing sanity check on sshd configuration.Starting sshd.

Now you are Ready :

Using username "root".Last login: Fri Dec 13 15:15:40 2013FreeBSD 10.0-RC1 (GENERIC) #0 r259068: Sat Dec 7 21:12:15 UTC 2013Welcome to FreeBSD!FreeBSD Welcome to Unixmen Test Machineroot@Freebsd10:~ #

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.