首先 sudo apt-get update 更新本地库索引
sudo apt-get install openssh-server 安装服务
ps -e | grep sshd 查看ssh进程
sudo vim /etc/network/interfaces 找到文件并作如下修改
auto eth0
iface eth0 inet static
address ip地址
gateway 网关
netmask 255.255.255.0
sudo vim /etc/resolv.conf 写上一个公网的DNS
nameserver 202.96.128.86