远程ssh登入:
https://www.cnblogs.com/zmblx/p/10075353.html
sudo vim /etc/ssh/sshd_config
找到并用#注释掉这行:PermitRootLogin prohibit-password // 允许root登录,但是禁止root用密码登录(默认值在文件中是被注释掉的)
新建一行 添加:PermitRootLogin yes //允许root登录,设为yes。
无法解析dns配置网卡:
root@ubuntu:~# vim /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
ens33:
dhcp4: true
addresses: [192.168.1.27/24]
gateway4: 192.168.0.1
nameservers:
addresses: [114.114.114.114, 223.5.5.5]
version: 2
~