1. 编辑网卡
[root@temp network-scripts]# vi ifcfg-ens160
[root@temp network-scripts]# cat ifcfg-ens160
TYPE=Ethernet
BOOTPROTO=dhcp
NAME=ens160
DEVICE=ens160
ONBOOT=yes
2. 清除密钥文件
[root@temp ~]# cd /etc/ssh/
[root@temp ssh]# ls
moduli ssh_config.d ssh_host_ecdsa_key ssh_host_ed25519_key ssh_host_rsa_key
ssh_config sshd_config ssh_host_ecdsa_key.pub ssh_host_ed25519_key.pub ssh_host_rsa_key.pub
[root@temp ssh]# rm -rf ssh_host_*
[root@temp ssh]# ls
moduli ssh_config ssh_config.d sshd_config
3. 清除machine-id
[root@temp ssh]# cat /etc/machine-id
5f9da25a629841b8bdba92d307182c0d
[root@temp ssh]# cat /dev/null > /etc/machine-id
[root@temp ssh]# cat /etc/machine-id
4. 关机
init 0
5. 转为模板


629

被折叠的 条评论
为什么被折叠?



