"CentOS sshpass 설치"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(사용자 2명의 중간 판 21개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{소문자}}
{{다른뜻|우분투 sshpass 설치}}
{{테스트|Fedora release 11 (Leonidas)}}
{{테스트|CentOS 6.2}}
;리눅스 sshpass 설치 (yum)
;CentOS sshpass 설치


==yum, apt-get 설치 실패==
==확인==
yum과 apt-get으로 설치를 시도하였으나 패키지를 찾지 못해 설치되지 않았다.
<syntaxhighlight lang='console'>
<source lang='dos'>
[root@zetawiki ~]# rpm -qa | grep sshpass
[root@jmnote ~]# yum install sshpass -y
[root@zetawiki ~]# sshpass
Loaded plugins: fastestmirror, refresh-packagekit
-bash: sshpass: command not found
Determining fastest mirrors
</syntaxhighlight>
updates/metalink                                                                                  | 2.6 kB    00:00
:→ 설치 안됨
* fedora: ftp.tsukuba.wide.ad.jp
* updates: ftp-stud.hs-esslingen.de
fedora                                                                                            | 3.8 kB    00:00
Setting up Install Process
No package sshpass available.
Nothing to do
</source>
<source lang='dos'>
[root@jmnote ~]# apt-get install sshpass
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package sshpass
</source>


==다운로드 및 설치==
== epel-release 설치 ==
===명령어===
{{참고|epel-release 설치}}
<source lang='bash'>
wget http://download.fedora.redhat.com/pub/epel/6/x86_64/sshpass-1.05-1.el6.x86_64.rpm
rpm -Uvh sshpass-1.05-1.el6.x86_64.rpm
</source>


===예시===
== yum으로 설치 ==
<source lang='dos'>
<syntaxhighlight lang='console'>
[root@jmnote ~]# wget http://download.fedora.redhat.com/pub/epel/6/x86_64/sshpass-1.05-1.el6.x86_64.rpm
[root@zetawiki ~]# yum install sshpass
--2012-02-12 16:22:30--  http://download.fedora.redhat.com/pub/epel/6/x86_64/sshpass-1.05-1.el6.x86_64.rpm
... (생략)
Resolving download.fedora.redhat.com... 209.132.181.23, 209.132.181.24, 209.132.181.25, ...
===================================================================================
Connecting to download.fedora.redhat.com|209.132.181.23|:80... connected.
Package            Arch              Version                Repository      Size
HTTP request sent, awaiting response... 200 OK
===================================================================================
Length: 19292 (19K) [application/x-rpm]
Installing:
Saving to: “sshpass-1.05-1.el6.x86_64.rpmâ€
sshpass            x86_64            1.05-1.el6             epel            19 k


100%[================================================================================>] 19,292      62.4K/s   in 0.3s
Transaction Summary
===================================================================================
Install      1 Package(s)


2012-02-12 16:22:31 (62.4 KB/s) - “sshpass-1.05-1.el6.x86_64.rpmâ€
Total download size: 19 k
Installed size: 33 k
Is this ok [y/N]: y
</syntaxhighlight>
<syntaxhighlight lang='console'>
... (생략)
Installed:
  sshpass.x86_64 0:1.05-1.el6                                                    


[root@jmnote ~]# rpm -Uvh sshpass-1.05-1.el6.x86_64.rpm
Complete!
warning: sshpass-1.05-1.el6.x86_64.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 0608b895
</syntaxhighlight>
Preparing...                ########################################### [100%]
  1:sshpass                ########################################### [100%]


</source>
==확인 2==
 
<syntaxhighlight lang='console'>
===실행 확인===
[root@zetawiki ~]# rpm -qa | grep sshpass
<source lang='dos'>
sshpass-1.05-1.el6.x86_64
[root@jmnote ~]# sshpass
</syntaxhighlight>
Usage: sshpass [-f|-d|-p|-e] [-hV] command parameters
<syntaxhighlight lang='console'>
  -f filename  Take password to use from file
[root@zetawiki ~]# sshpass -V
  -d number    Use number as file descriptor for getting password
sshpass 1.05 (C) 2006-2011 Lingnu Open Source Consulting Ltd.
  -p password  Provide password as argument (security unwise)
This program is free software, and can be distributed under the terms of the GPL
  -e            Password is passed as env-var "SSHPASS"
See the COPYING file for more information.
  With no parameters - password will be taken from stdin
</syntaxhighlight>
 
  -h            Show help (this screen)
  -V            Print version information
At most one of -f, -d, -p or -e should be used
[root@jmnote ~]# which sshpass
/usr/bin/sshpass
</source>
*/usr/bin에 설치되었다.


==같이 보기==
==같이 보기==
*[[epel-release 설치]]
*[[sshpass 사용법]]
*[[우분투 sshpass 설치]]
*[[리눅스에서 SFTP로 파일 올리기]]
*[[리눅스에서 SFTP로 파일 올리기]]


[[분류:리눅스]]
[[분류:리눅스]]
[[분류:SSH]]
[[분류:SSH]]
[[분류:/usr/bin]]
[[분류: yum 설치]]

2020년 11월 2일 (월) 00:55 기준 최신판

  다른 뜻에 대해서는 우분투 sshpass 설치 문서를 참조하십시오.
리눅스 sshpass 설치 (yum)
CentOS sshpass 설치

1 확인[ | ]

[root@zetawiki ~]# rpm -qa | grep sshpass
[root@zetawiki ~]# sshpass
-bash: sshpass: command not found
→ 설치 안됨

2 epel-release 설치[ | ]

3 yum으로 설치[ | ]

[root@zetawiki ~]# yum install sshpass
... (생략)
===================================================================================
 Package            Arch              Version                Repository       Size
===================================================================================
Installing:
 sshpass            x86_64            1.05-1.el6             epel             19 k

Transaction Summary
===================================================================================
Install       1 Package(s)

Total download size: 19 k
Installed size: 33 k
Is this ok [y/N]: y
... (생략)
Installed:
  sshpass.x86_64 0:1.05-1.el6                                                      

Complete!

4 확인 2[ | ]

[root@zetawiki ~]# rpm -qa | grep sshpass
sshpass-1.05-1.el6.x86_64
[root@zetawiki ~]# sshpass -V
sshpass 1.05 (C) 2006-2011 Lingnu Open Source Consulting Ltd.
This program is free software, and can be distributed under the terms of the GPL
See the COPYING file for more information.

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}