单用户
救援模式
2.选中虚拟机,右键单击》选择“电源”》选择“启动时进入blos”
3.选择第3项
4.选择第2项
克隆虚拟机
1.选中虚拟机,右击选择“管理”》选择“克隆”
2.vi /etc/sysconfig/network-scripts/ifcfg-....
3.改ip、删除UUID和HWARRD
4.systemctl restart network.service
5.ping网络
6.设置快照。
linux互联
1.
[root@localhost ~]# ssh root@192.168.1.12
root@192.168.1.12's password:
Last login: Mon Oct 16 15:58:37 2017 from mey
[root@localhost ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
[root@localhost ~]# ll /root/.ssh/
总用量 8
-rw-------. 1 root root 1675 10月 16 16:02 id_rsa
-rw-r--r--. 1 root root 408 10月 16 16:02 id_rsa.pub
[root@localhost ~]# ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.1.12 拷贝到对方指定目录下
可以使用系统自带的ssh-copy-id工具。且只能靠公钥。
如果修改端口:
2. 也可以采用rsync方式。
3.采用远程连接工具复制公钥粘贴
[root@localhost ~]# vi /root/.ssh/authorized_keys