NetBSD 网络配置
liufeng# ifconfig -l
tlp0 lo0
tlp0就是你的网卡
vi /etc/rc.conf
添加:
auto_ifconfig=YES //网卡自动启动
ifconfig_tlp0="inet 192.168.0.123 netmask 255.255.255.0"
defaultroute="192.168.0.1"
vi /etc/resolv.conf
nameserver 202.106.196.115
nameserver 202.106.0.20
echo liufeng.com>> /etc/myname
-------------------------------
echo sshd=YES >>/etc/rc.conf
再编辑/etc/ssh/sshd_config
把PermitRootLogin 去掉注释 值改为yes //为了让root能远程ssh
重新启动 即可