linux支持sshd救援模式,单用户、救援模式、克隆、两机互联

单用户

db24aa9cdb6a7736afcca3021aed9739.png

fbba38369a3220a8adb584302d202ae3.png

c89d2d9c4a457983893e3dae9f2fd6cd.png

救援模式

26de41d2d21179af60ff9c52e230c16c.png

2.选中虚拟机,右键单击》选择“电源”》选择“启动时进入blos”

0f1bd23fe8f63528cc5940e6d586089f.png

3.选择第3项

4.选择第2项

c2cbbfe22fe4897326eea2155016b395.png

3c11251c0d31c010fc87e4c72bb9a7d7.png

克隆虚拟机

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.pubroot@192.168.1.12拷贝到对方指定目录下

可以使用系统自带的ssh-copy-id工具。且只能靠公钥。

如果修改端口:

7bc1e58fa13ce72d5d0777742662e925.png

2.也可以采用rsync方式。

3.采用远程连接工具复制公钥粘贴

[root@localhost ~]# vi /root/.ssh/authorized_keys

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值