在centos上安装openssh

时间:2014-08-15 15:40:33

标签: hadoop ssh centos mapr

我正在尝试在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将会很棒。

提前致谢

4 个答案:

答案 0 :(得分:0)

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

 yum install openssh-server

答案 1 :(得分:0)

更好的方法是为无密码登录设置ssh密钥。设置私钥和公钥并将其复制到其他节点。请参阅本教程SSH Passwordless Login Using SSH Keygen in 5 Easy Steps

答案 2 :(得分:0)

BTW sshpass可以通过该名称本身在epel repos中获得。您应该将epel repo添加到您的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

答案 3 :(得分:0)

在默认的Centos存储库中找不到sshpass包。您必须安装epel-release存储库然后安装sshpass软件包。 用于在命令下方的centos run上安装epel-release。

yum install epel-release