I messed something with conf of /etc/ssh/sshd_config.
I have line
but I can still login as root via ssh. What I am doing wrong?
restarting ssh also did not help
Last thing I try was restarting FreeNAS, but I am still able to login as root via ssh.
What I am doing wrong?
I have line
Code:
PermitRootLogin no
but I can still login as root via ssh. What I am doing wrong?
restarting ssh also did not help
Code:
root@freenas:~ # /etc/rc.d/sshd restart Cannot 'restart' sshd. Set sshd_enable to YES in /etc/rc.conf or use 'onerestart' instead of 'restart'. root@freenas:~ # /etc/rc.d/sshd onerestart Performing sanity check on sshd configuration. sshd not running? (check /var/run/sshd.pid). Performing sanity check on sshd configuration. Starting sshd. root@freenas:~ # ssh-keygen -A root@freenas:~ #
Last thing I try was restarting FreeNAS, but I am still able to login as root via ssh.
What I am doing wrong?