ssh免密码登录 #生成一对秘钥ssh-keygen -t rsa#将公钥复制到服务器的 authorized_keys 文件中ssh-copy-id ip#eg:ssh-copy-id localhostssh-copy-id 192.168.31.42ssh-copy-id 192.168.31.43ssh-copy-id 192.168.31.44 虚拟机克隆 1.vim /etc/udev/rules.d/70-persistent-net.rules #编辑文件,删除或注释 # 1,将 # 2 NAME="eth1"改成NAME="eth0"# 1#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:ef:4c:31", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"# 2SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:27:34:f4", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"2.vim /etc/sysconfig/network-scripts/ifcfg-eth0 #删除 HWADDR