- 编辑
/etc/ssh/sshd_config
- 找到
# Authentication
项下的
PermitRootLogin prohibit-password
改成PermitRootLogin yes
- 重启 ssh
sudo systemctl restart sshd
日度归档:2020-10-30
CentOS 添加新网卡
查看当前网卡
nmcli con show
- 进入
/etc/sysconfig/network-scripts/
- 复制现有网络配置(如
ifcfg-eth0
) - 修改新配置的
NAME
UUID
DEVICE
核心配置,并按需修改IP等即可,方法参考