码迷,mamicode.com
首页 > 其他好文 > 详细

单用户、救援模式、克隆、两机互联

时间:2017-10-19 12:36:32      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:克隆 单用户 救援

单用户

技术分享

技术分享

技术分享



救援模式

技术分享

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


本文出自 “帕多克的痴迷” 博客,请务必保留此出处http://lsxme.blog.51cto.com/12400127/1974094

单用户、救援模式、克隆、两机互联

标签:克隆 单用户 救援

原文地址:http://lsxme.blog.51cto.com/12400127/1974094

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!