国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務器 > Web服務器 > 正文

centos6.5配置ssh免秘鑰登陸執行pssh命令的講解

2024-09-01 13:56:35
字體:
來源:轉載
供稿:網友

1.檢查并安裝pssh,yum list pssh

2.因為沒有配置免秘鑰登陸,pssh命令執行失敗。

[root@bogon ]# pssh -H root@192.168.245.129 -i uptime[1] 11:00:36 [FAILURE] root@192.168.245.129 Exited with error code 255Stderr: The authenticity of host '192.168.245.129 (192.168.245.129)' can't be established.RSA key fingerprint is 84:2d:70:33:1c:45:fa:e6:4b:94:72:7e:10:98:7c:a8.Are you sure you want to continue connecting (yes/no)? Host key verification failed.

3.生成秘鑰。

[root@bogon tmp]# ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): 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.The key fingerprint is:9e:14:9a:cc:8d:9b:fd:51:c5:68:24:e1:ce:c6:d7:33 root@bogonThe key's randomart image is:+--[ RSA 2048]----+|     o..  ||     . o o  ||    . . o o ||   o = = . o  ||   * S = o E ||    * o o  o ||   o + .   ||     . .   ||     .   |+-----------------+
[root@bogon .ssh]# lltotal 8-rw------- 1 root root 1675 Aug 22 11:06 id_rsa-rw-r--r-- 1 root root 392 Aug 22 11:06 id_rsa.pub

4.拷貝到被管對象。

[root@bogon .ssh]# ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.245.129The authenticity of host '192.168.245.129 (192.168.245.129)' can't be established.RSA key fingerprint is 84:2d:70:33:1c:45:fa:e6:4b:94:72:7e:10:98:7c:a8.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added '192.168.245.129' (RSA) to the list of known hosts.reverse mapping checking getaddrinfo for bogon [192.168.245.129] failed - POSSIBLE BREAK-IN ATTEMPT!root@192.168.245.129's password: Now try logging into the machine, with "ssh 'root@192.168.245.129'", and check in: .ssh/authorized_keysto make sure we haven't added extra keys that you weren't expecting.

5.pssh命令執行成功。

[root@bogon .ssh]# pssh -H root@192.168.245.129 -i uptime[1] 11:10:39 [SUCCESS] root@192.168.245.129 20:10:39 up 2:07, 1 user, load average: 0.00, 0.00, 0.00

總結

以上就是這篇文章的全部內容了,希望本文的內容對大家的學習或者工作具有一定的參考學習價值,謝謝大家對VEVB武林網的支持。


注:相關教程知識閱讀請移步到服務器教程頻道。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 万山特区| 淮南市| 张家界市| 西青区| 金溪县| 金山区| 庆阳市| 麟游县| 苏尼特右旗| 会理县| 泰兴市| 栖霞市| 宜川县| 隆林| 仪征市| 惠安县| 渭南市| 钟山县| 阆中市| 邵阳县| 安福县| 缙云县| 桦川县| 东辽县| 湟中县| 永平县| 建阳市| 连平县| 云南省| 金秀| 乌拉特中旗| 水富县| 岫岩| 木兰县| 阿城市| 桓台县| 东城区| 平果县| 宁国市| 沾益县| 静宁县|