linux 自学系列:debian 加载ssh服务、网络配置、DNS设置
一、ssh
1、先安装ssh
apt-get install ssh
2、可修改ssh链接端口vi /opt/debian/etc/ssh/sshd_config
3、加载ssh 服务 /etc/init.d/ssh start
二、网络配置
1、网络配置文件 /etc/network/interfaces
2、示例:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.2.2
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.1
3、重启网络
/etc/init.d/networking restart
三、DNS配置
1、配置文件 /etc/resolv.conf
2、示例:
domain
nameserver 208.67.222.222
nameserver 208.67.220.220
3、