Debian 9.2 试安装只有290M 的镜像。 [] []

选择Install [] 选择Eglish []

默认区域设置,因为不能选择中国,选择中国会出现上图2,所以我们先选择United States [] keymap to user: Default [] Hostname:debian Default [] Domain name: Default,空 [] Password: [] Re-enter password: [] new user: 新用户名 [] Username: 新用户名的账号 [] Password:新用户账号的密码 [] Re-password: [] 稍等片刻 [] Select your time zone: Eastern [] Partition disks 硬盘分区 Default [] Select disk to partition: Default [] Partitioning scheme: Default [] Finish partitioning and write changes to disk [] Yes [] 稍等 Installing [] Configure the package manager [] 这里有问题了, 选择China的话好像后面就选择不了安装SSH的选项,还有出现等下的Bad archive mirror问题 所以这里我选了United States。 选择United States 跳过下面选择China的Go Back图-5张 [] Go Back [] Go Back []

【】 选择United States [] 选择 ftp.us.debian.org [] Yes [] 稍等 [] 这里就可以选择SSH 等其他的software [] Yes [] 选择 /dev/sda [] Continue [] 重启 [] SSH 就是可以的了

然后就是配置IP地址了: vi /etc/network/interfaces auto eth0 iface eth0 inet static ipaddress 192.168.0.123 netmask 255.255.255.0 gateway 192.168.0.1

dns-nameservers 8.8.8.8 .如果安装了resolvconf接着在gateway的下面一行添加

DNS配置文件地址 /etc/resolv.conf 添加实际的dns地址: nameserver 8.8.8.8

开启SSH root 用户远程登录: vi /etc/ssh/sshd_config PermitRootLogin yes

systemctl restart sshd