freebsd使用

ssh开启

ee /etc/inetd.conf #去掉sshd注释
ee /etc/ssh/sshd_config
PermitRootLogin no改为PermitRootLogin yes
PasswordAuthentication no改为PasswordAuthentication yes
ee /etc/etc/rc.conf
sshd_enable="YES"

配置网卡

ifconfig em0 192.168.31.100/24 #在网卡em0添加IP,重启会失效
route add default 192.168.31.1 #添加默认路由,也可以理解成网关,重启也会失效
ee /etc/rc.conf #添加在这个文件就不怕重启生效
ifconfig_em0="inet 192.168.31.100/24"
defaultrouter="192.168.31.1"
service netif restart #重启网卡
service routing restart #重启路由
原文地址:https://www.cnblogs.com/yunweiweb/p/13068978.html