When I was testing my new FreeBSD 10 RC, I was not able to connect from remote machine using root user. So I decided to make a tutorial about this, may be it will help some people who is having the same problem.
Using username "root". Access denied Using keyboard-interactive authentication. Password for root@Freebsd10: Access denied
How to enable root login on FreeBSD 10 ?
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 restart Performing 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 2013 FreeBSD 10.0-RC1 (GENERIC) #0 r259068: Sat Dec 7 21:12:15 UTC 2013 Welcome to FreeBSD! FreeBSD Welcome to Unixmen Test Machin root@Freebsd10:~ #