How can I Access a Freebsd Server With ssh?
By default, remote root access is disabled for security reasons. However, you can still enable it by configuring sshd.
Enable Root Login
1 | vi /etc/ssh/sshd_config |
Replace the in:
1 | #PermitRootLogin no |
with
1 | PermitRootLogin yes |
save and close it.
Auto Start SSH
1 | vi /etc/rc.conf |
If there is no such a line
1 | sshd_enable="YES" |
add it, then save it.
Restart sshd
1 | /etc/rc.d/sshd restart |