欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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

 更新時(shí)間:2019年02月14日 14:59:37   作者:zsx0728  
今天小編就為大家分享一篇關(guān)于centos6.5配置ssh免秘鑰登陸執(zhí)行pssh命令的講解,小編覺得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編來看看吧

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

2.因?yàn)闆]有配置免秘鑰登陸,pssh命令執(zhí)行失敗。

[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.拷貝到被管對(duì)象。

[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命令執(zhí)行成功。

[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

總結(jié)

以上就是這篇文章的全部內(nèi)容了,希望本文的內(nèi)容對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,謝謝大家對(duì)腳本之家的支持。如果你想了解更多相關(guān)內(nèi)容請(qǐng)查看下面相關(guān)鏈接

相關(guān)文章

  • Linux下安裝卸載ftp的方法

    Linux下安裝卸載ftp的方法

    本文給大家簡單分享了下如何在Linux系統(tǒng)中安裝配置與卸載FTP的方法,非常實(shí)用,有需要的菜鳥小伙伴可以參考下
    2016-07-07
  • 在Linux中查找命令的執(zhí)行時(shí)間的幾種方法小結(jié)

    在Linux中查找命令的執(zhí)行時(shí)間的幾種方法小結(jié)

    在Linux系統(tǒng)中,了解命令的執(zhí)行時(shí)間對(duì)于優(yōu)化系統(tǒng)性能和提高效率至關(guān)重要,本文將介紹幾種方法來查找命令的執(zhí)行時(shí)間,包括內(nèi)置的time命令、GNU time工具、strace以及perf工具,需要的朋友可以參考下
    2024-05-05
  • linux無損擴(kuò)容的方法

    linux無損擴(kuò)容的方法

    這篇文章主要介紹了linux無損擴(kuò)容的方法,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2018-12-12
  • vmware中CentOS7網(wǎng)絡(luò)設(shè)置教程詳解

    vmware中CentOS7網(wǎng)絡(luò)設(shè)置教程詳解

    這篇文章主要為大家詳細(xì)介紹了vmware中CentOS7網(wǎng)絡(luò)設(shè)置教程,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2017-07-07
  • 在 Ubuntu 上安裝 Protobuf 3 的教程詳解

    在 Ubuntu 上安裝 Protobuf 3 的教程詳解

    這篇文章主要介紹了在 Ubuntu 上安裝 Protobuf 3遇到問題及解決方法,本文給大家介紹的非常詳細(xì),具有一定的參考借鑒價(jià)值 ,需要的朋友可以參考下
    2019-06-06
  • 在Apache服務(wù)器中運(yùn)行CGI程序的方法

    在Apache服務(wù)器中運(yùn)行CGI程序的方法

    這篇文章主要介紹了在Apache服務(wù)器中運(yùn)行CGI程序的方法,文中以Perl腳本作為示例,需要的朋友可以參考下
    2015-07-07
  • php擴(kuò)展memcached和memcache的安裝配置方法

    php擴(kuò)展memcached和memcache的安裝配置方法

    這篇文章主要介紹了php擴(kuò)展memcached和memcache的安裝配置方法,需要的朋友可以參考下
    2014-11-11
  • 詳解如何在 Linux 中安裝最新的 Python 3.6 版本

    詳解如何在 Linux 中安裝最新的 Python 3.6 版本

    本篇文章主要介紹了詳解如何在 Linux 中安裝最新的 Python 3.6 版本,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下。
    2017-03-03
  • linux如何mount掛載磁盤并設(shè)置開機(jī)自動(dòng)mount的實(shí)現(xiàn)

    linux如何mount掛載磁盤并設(shè)置開機(jī)自動(dòng)mount的實(shí)現(xiàn)

    這篇文章主要介紹了linux如何mount掛載磁盤并設(shè)置開機(jī)自動(dòng)mount的實(shí)現(xiàn),文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-09-09
  • Linux常用命令last的使用方法詳解

    Linux常用命令last的使用方法詳解

    最近在學(xué)習(xí)linux命令,學(xué)習(xí)到了last命令,發(fā)現(xiàn)很多同學(xué)對(duì)last命令不是很熟悉,last命令的功能列出目前與過去登入系統(tǒng)的用戶相關(guān)信息,下面這篇文章主要給大家介紹了關(guān)于Linux常用命令last的使用方法,需要的朋友可以參考借鑒。
    2017-08-08

最新評(píng)論