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

2번째 줄: 2번째 줄:
{{테스트|Fedora release 11 (Leonidas)}}
{{테스트|Fedora release 11 (Leonidas)}}


==yum, apt-get 설치 실패==
==확인==
yum과 apt-get으로 설치를 시도하였으나 패키지를 찾지 못해 설치되지 않았다.
<source lang='dos'>
<source lang='dos'>
[root@jmnote ~]# yum install sshpass -y
[root@jmnote ~]# rpm -qa | grep sshpass
Loaded plugins: fastestmirror, refresh-packagekit
[root@jmnote ~]# sshpass
Determining fastest mirrors
-bash: sshpass: command not found
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>
</source>


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


===예시===
=== yum으로 설치 ===
<source lang='dos'>
<source lang='dos'>
[root@jmnote ~]# wget http://download.fedora.redhat.com/pub/epel/6/x86_64/sshpass-1.05-1.el6.x86_64.rpm
[root@jmnote ~]# 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
</source>
<source lang='dos'>
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
</source>
Preparing...                ########################################### [100%]
  1:sshpass                ########################################### [100%]


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


==같이 보기==
==같이 보기==
*[[리눅스에서 SFTP로 파일 올리기]]
*[[리눅스에서 SFTP로 파일 올리기]]
*[[sshpass]]


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

2013년 11월 27일 (수) 15:02 판

1 확인

[root@jmnote ~]# rpm -qa | grep sshpass
[root@jmnote ~]# sshpass
-bash: sshpass: command not found

1.1 epel-release 설치

1.2 yum으로 설치

[root@jmnote ~]# 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!

1.3 확인 2

[root@jmnote ~]# rpm -qa | grep sshpass
sshpass-1.05-1.el6.x86_64
[root@jmnote ~]# 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.

2 같이 보기

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