一. IP地址配置
修改/etc/rc.conf,需要/etc/rc.d/netif重起,或reboot才能生效
1. 设置IP地址 ifconfig_re0="inet 192.168.0.76 netmask 255.255.254.0"
2. 设置默认网关 defaultrouter="192.168.0.1"
二. SSH开启root账号密码验证
1. 修改 /etc/ssh/sshd_config
ee /etc/ssh/sshd_config
在最后中加入
PermitRootLogin yes #允许root登录
PermitEmptyPasswords no #不允许空密码登录
PasswordAuthentication yes # 设置是否使用口令验证。
2. 编辑/etc/inetd.conf,去掉ssh前的#
ee /etc/inetd.conf
3. 编辑 ee /etc/rc.conf
最后加入:sshd_enable="yes"即可
4./etc/rc.d/sshd restart
查看ssh进程: netstat -an