Debian10中启用SSH和网络配置

修改SSH

nano /etc/ssh/sshd_config

修改#PermitRootLogin prohibit-password为

PermitRootLogin yes

设置固定ip

修改/etc/network/interfaces

auto eth0
iface eth0 inet static
address 10.10.10.11
netmask 255.255.255.0
gateway 10.10.10.1

设置DNS

修改/etc/resolv.conf

nameserver 10.10.10.1