校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > centos6.5配置ssh免秘鑰登陸執行pssh命令的講解

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

熱門標簽:遼寧電銷平臺外呼系統軟件 百應電銷機器人靠譜嗎 申請400電話號碼多少錢 物超所值的400電話申請 菏澤crm外呼系統價格 如何在各種地圖標注自己的地址 coreldraw地圖標注 營銷電銷機器人招商 信陽銷售外呼系統招商

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 255
Stderr: 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 rsa
Generating 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@bogon
The key's randomart image is:
+--[ RSA 2048]----+
|     o..  |
|     . o o  |
|    . . o o |
|   o = = . o  |
|   * S = o E |
|    * o o  o |
|   o + .   |
|     . .   |
|     .   |
+-----------------+
[root@bogon .ssh]# ll
total 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.129
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)? yes
Warning: 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_keys
to 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

總結

以上就是這篇文章的全部內容了,希望本文的內容對大家的學習或者工作具有一定的參考學習價值,謝謝大家對腳本之家的支持。如果你想了解更多相關內容請查看下面相關鏈接

標簽:泰安 湖北 內江 江西 廈門 江門 玉樹 瀘州

巨人網絡通訊聲明:本文標題《centos6.5配置ssh免秘鑰登陸執行pssh命令的講解》,本文關鍵詞  centos6.5,配置,ssh,免秘,鑰,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《centos6.5配置ssh免秘鑰登陸執行pssh命令的講解》相關的同類信息!
  • 本頁收集關于centos6.5配置ssh免秘鑰登陸執行pssh命令的講解的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 会同县| 庄河市| 鄯善县| 陆丰市| 福清市| 中卫市| 肃北| 扎兰屯市| 山丹县| 潞西市| 光山县| 东方市| 南乐县| 潜山县| 五峰| 曲靖市| 长葛市| 平安县| 徐汇区| 连城县| 泰安市| 和平区| 河曲县| 孟州市| 方山县| 黄梅县| 青州市| 邵东县| 胶南市| 获嘉县| 象山县| 建平县| 习水县| 永年县| 年辖:市辖区| 揭阳市| 永和县| 咸宁市| 宜黄县| 宁乡县| 凌海市|