Linux初始密码设置
sudo passwd 或者sudo passwd root
Password:你当前的密码
Enter new UNIX password:这个是root的密码
Retype new UNIX password:重复root的密码
设置IP地址
netplan yaml 配置路由
vim /etc/netplan/00-installer-config.yaml
netplan apply
允许远程登陆设置
- vim /etc/ssh/sshd_config
- 修改/etc/ssh/sshd_config 文件,PermitRootLogin yes

- 重启sshd
systemctl restart sshd.service
