[FreeBSD] 開啟 SSH 遠端連線

修改 /etc/ssh/sshd_config

1
2
3
PermitRootLogin yes
PermitEmptyPasswords no
PasswordAuthentication yes

 

修改 /etc/inetd.conf,將以下的註解拿掉(開啟遠端登入root)

1
2
ssh stream tcp nowait root /usr/sbin/sshd sshd -i -4
ssh stream tcp6 nowait root /usr/sbin/sshd sshd -i -6

 

/etc/rc.conf 加入

1
sshd_enable="yes"

 

重新啟動服務

1
/etc/rc.d/sshd restart
Licensed under CC BY-NC-SA 3.0 TW
comments powered by Disqus