【问题标题】:Installing openssh on centos在 centos 上安装 openssh
【发布时间】:2014-08-15 15:40:32
【问题描述】:

我正在尝试在 centos 上安装 sshpass,因为我想在我们的系统上安装 MapR。

我遵循此处给出的指导方针: http://doc.mapr.com/display/MapR/Quick+Installation+Guide

我遇到以下问题:

sudo yum install sshpass
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
Setting up Install Process
No package sshpass available.
Error: Nothing to do

如果有人可以帮助我了解从哪里获取 sshpass,那就太好了。

提前致谢

【问题讨论】:

    标签: hadoop ssh centos mapr


    【解决方案1】:

    BTW sshpass 在 epel repos 中以该名称本身可用。您可能应该将 epel 存储库添加到您的 yum 配置中。

    [root@rh-1 ~]# yum whatprovides */sshpass
    Loaded plugins: product-id, security, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    centos                                                                                                                                                   | 3.7 kB     00:00     
    epel/metalink                                                                                                                                            | 8.4 kB     00:00     
    epel                                                                                                                                                     | 4.4 kB     00:00     
    epel/primary_db                                                                                                                                          | 6.3 MB     00:03     
    maprecosystem                                                                                                                                            |  951 B     00:00     
    maprecosystem/primary                                                                                                                                    |  12 kB     00:00     
    maprecosystem                                                                                                                                                             74/74
    maprtech                                                                                                                                                 |  951 B     00:00     
    centos/filelists_db                                                                                                                                      | 5.9 MB     00:15     
    epel/filelists_db                                                                                                                                        | 9.0 MB     00:07     
    maprecosystem/filelists                                                                                                                                  | 333 kB     00:00     
    maprtech/filelists                                                                                                                                       |  16 kB     00:00     
    sshpass-1.05-1.el6.x86_64 : Non-interactive SSH authentication utility
    Repo        : epel
    Matched from:
    Filename    : /usr/bin/sshpass
    

    【讨论】:

      【解决方案2】:

      据我所知,包含 CentOS 上的 openssh 服务器的包不叫sshpass,而是叫openssh-server 所以运行

       yum install openssh-server
      

      【讨论】:

      • 是的。感谢。但是怎么用呢? Openssh服务器
      【解决方案3】:

      更好的方法是设置 ssh 密钥以进行无密码登录。设置私钥和公钥并将它们复制到其他节点。看这个教程SSH Passwordless Login Using SSH Keygen in 5 Easy Steps

      【讨论】:

        【解决方案4】:

        在默认的 Centos 存储库中找不到 sshpass 包。您必须安装 epel-release 存储库,然后安装 sshpass 包。 要在您的 centos 上安装 epel-release,请运行以下命令。

        yum install epel-release
        

        【讨论】:

          猜你喜欢
          • 2016-06-11
          • 2014-04-27
          • 2011-11-04
          • 1970-01-01
          • 2021-04-27
          • 2012-11-02
          • 2019-02-05
          • 2011-02-10
          • 2013-03-15
          相关资源
          最近更新 更多