"-bash: ssh: command not found"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
3번째 줄: 3번째 줄:


==문제상황==
==문제상황==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# ssh
[root@zetawiki ~]# ssh
-bash: ssh: command not found
-bash: ssh: command not found
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# scp
[root@zetawiki ~]# scp
-bash: scp: command not found
-bash: scp: command not found
</source>
</syntaxhighlight>


==해결방법==
==해결방법==
22번째 줄: 22번째 줄:


==확인==
==확인==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# rpm -qa | grep openssh-clients
[root@zetawiki ~]# rpm -qa | grep openssh-clients
[root@zetawiki ~]#  
[root@zetawiki ~]#  
</source>
</syntaxhighlight>
:→ openssh-clients 패키지가 설치되지 않았음
:→ openssh-clients 패키지가 설치되지 않았음


==openssh-clients 설치==
==openssh-clients 설치==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# yum install openssh-clients
[root@zetawiki ~]# yum install openssh-clients
... (생략)
... (생략)
48번째 줄: 48번째 줄:
Total download size: 1.0 M
Total download size: 1.0 M
Is this ok [y/N]: y
Is this ok [y/N]: y
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
... (생략)
... (생략)
Installed:
Installed:
59번째 줄: 59번째 줄:


Complete!
Complete!
</source>
</syntaxhighlight>


==확인 2==
==확인 2==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# ssh -V
[root@zetawiki ~]# ssh -V
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# scp
[root@zetawiki ~]# scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
           [[user@]host1:]file1 ... [[user@]host2:]file2
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2022년 5월 9일 (월) 13:50 기준 최신판

-bash: ssh: command not found
-bash: scp: command not found

1 문제상황[ | ]

[root@zetawiki ~]# ssh
-bash: ssh: command not found
[root@zetawiki ~]# scp
-bash: scp: command not found

2 해결방법[ | ]

OS별 명령어
데비안/우분투 SSH 클라이언트 설치 apt install openssh-client
CentOS ssh 클라이언트 설치 yum install openssh-clients

3 확인[ | ]

[root@zetawiki ~]# rpm -qa | grep openssh-clients
[root@zetawiki ~]#
→ openssh-clients 패키지가 설치되지 않았음

4 openssh-clients 설치[ | ]

[root@zetawiki ~]# yum install openssh-clients
... (생략)
======================================================================
 Package             Arch       Version             Repository   Size
======================================================================
Installing:
 openssh-clients     x86_64     5.3p1-114.el6_7     updates     439 k
Updating for dependencies:
 openssh             x86_64     5.3p1-114.el6_7     updates     274 k
 openssh-server      x86_64     5.3p1-114.el6_7     updates     324 k

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

Total download size: 1.0 M
Is this ok [y/N]: y
... (생략)
Installed:
  openssh-clients.x86_64 0:5.3p1-114.el6_7                            

Dependency Updated:
  openssh.x86_64 0:5.3p1-114.el6_7                                    
  openssh-server.x86_64 0:5.3p1-114.el6_7                             

Complete!

5 확인 2[ | ]

[root@zetawiki ~]# ssh -V
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
[root@zetawiki ~]# scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2

6 같이 보기[ | ]

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