passwd root #修改root密码 ssh-keygen -A service ssh start update-rc.d ssh enable #开机启动ssh服务 systemctl set-default multi-user.target #系统改为多用户模式,开机进入命令行界面 echo 'Acquire::ForceIPv4 "true";' > /etc/apt/apt.conf.d/99force-ipv4 #强制以ipv4更新软件(可选)
passwd root #修改root密码 ssh-keygen -A service ssh start update-rc.d ssh enable #开机启动ssh服务 systemctl set-default multi-user.target #系统改为多用户模式,开机进入命令行界面 echo 'Acquire::ForceIPv4 "true";' > /etc/apt/apt.conf.d/99force-ipv4 #强制以ipv4更新软件(可选)