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
image.png
netplan apply

允许远程登陆设置

  1. vim /etc/ssh/sshd_config
  2. 修改/etc/ssh/sshd_config 文件,PermitRootLogin yes

image.png

  1. 重启sshd

systemctl restart sshd.service