linux支持sshd救援模式,单用户、救援模式、克隆、两机互联
單用戶
救援模式
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.pubroot@192.168.1.12拷貝到對方指定目錄下
可以使用系統自帶的ssh-copy-id工具。且只能靠公鑰。
如果修改端口:
2.也可以采用rsync方式。
3.采用遠程連接工具復制公鑰粘貼
[root@localhost ~]# vi /root/.ssh/authorized_keys
總結
以上是生活随笔為你收集整理的linux支持sshd救援模式,单用户、救援模式、克隆、两机互联的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux c代码出现段错误,在linu
- 下一篇: 就linux学习的一点感受,谈谈前天面试