"리눅스 SSH 클라이언트"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 4명의 중간 판 26개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{소문자}}
{{소문자}}
;SSH
==개요==
;리눅스 SSH 클라이언트
;ssh
;/usr/bin/ssh
*[[CentOS 최소 설치 패키지]]에 SSH 서버(sshd)는 있지만, SSH 클라이언트(ssh)는 없다.
*최소 설치만 아니라면 대체로 설치되어 있다.


==설치 확인==
==SSH==
;명령어
{{참고|SSH}}
<source lang='bash'>
*SSH는 Secure Shell의 줄임말
ssh
*네트워크를 통해 다른 컴퓨터에 접근 하거나 그 컴퓨터에서 명령 실행 등을 할 수 있도록 해주는 응용 프로그램 혹은 그 프로토콜을 말함
</source>
*Telnet, Rlogin 등의 서비스에서 보안을 좀 더 강화하기 위해 나왔음


;실행예시 (설치됨)
==다른 서버 접속하기==
<source lang='dos'>
{{소스헤더|명령어}}
[root@jmnote ~]# ssh
<syntaxhighlight lang='bash'>
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
ssh 아이디@호스트주소
          [-D [bind_address:]port] [-e escape_char] [-F configfile]
</syntaxhighlight>
          [-i identity_file] [-L [bind_address:]port:host:hostport]
          [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
          [-R [bind_address:]port:host:hostport] [-S ctl_path]
          [-w local_tun[:remote_tun]] [user@]hostname [command]
</source>


;실행예시 (설치안됨)
{{소스헤더|실행예시}}
<source lang='dos'>
<syntaxhighlight lang='console'>
[root@jmnote ~]# ssh
[root@zetawiki ~]# ssh root@135.79.246.80
-bash: ssh: command not found
root@135.79.246.80's password: P@ssw0rd
</source>
Last login: Mon Mar 31 21:58:46 2014 from 246.80.135.79
[root@webserver1 ~]#
</syntaxhighlight>


==설치==
==22번 이외 포트 사용==
<source lang='dos'>
{{소스헤더|명령어}}
[root@jmnote ~]# yum install openssh-clients
<syntaxhighlight lang='bash'>
... (생략)
ssh 아이디@호스트주소 -p포트번호
===================================================================================================================================
</syntaxhighlight>
Package                          Arch                    Version                                  Repository                Size
===================================================================================================================================
Installing:
openssh-clients                  x86_64                  5.3p1-81.el6_3                            updates                  358 k
Installing for dependencies:
libedit                          x86_64                  2.11-4.20080712cvs.1.el6                  base                      74 k
Updating for dependencies:
openssh                          x86_64                  5.3p1-81.el6_3                            updates                  236 k
openssh-server                  x86_64                  5.3p1-81.el6_3                            updates                  300 k
 
Transaction Summary
===================================================================================================================================
Install      2 Package(s)
Upgrade      2 Package(s)
 
Total download size: 969 k
Is this ok [y/N]:
</source>
:y {{Enter}}
<source lang='dos'>
... (생략)
Installed:
  openssh-clients.x86_64 0:5.3p1-81.el6_3                                                                                         
 
Dependency Installed:
  libedit.x86_64 0:2.11-4.20080712cvs.1.el6                                                                                       
 
Dependency Updated:
  openssh.x86_64 0:5.3p1-81.el6_3                              openssh-server.x86_64 0:5.3p1-81.el6_3                           
 
Complete!
</source>
 
==위치 및 패키지 확인==
<source lang='dos'>
[root@jmnote ~]# which ssh
/usr/bin/ssh
</source>
<source lang='dos'>
[root@jmnote ~]# rpm -qf /usr/bin/ssh
openssh-clients-5.3p1-70.el6.x86_64
</source>
:→ 해당 패키지는 [[CentOS 6 최소 설치 패키지 목록]]에 없다.


{{소스헤더|실행예시}}
<syntaxhighlight lang='console'>
[root@zetawiki ~]# ssh root@example.com -p1022
root@example.com's password: P@ssw0rd
Last login: Mon Mar 31 21:58:46 2014 from 246.80.135.79
[root@webserver2 ~]#
</syntaxhighlight>


==같이 보기==
* [[리눅스 ssh 설치]]
* [[/etc/ssh/ssh_config]]
* [[리눅스 ssh 원격 명령어 실행]]
* [[원격 SSH 버전 확인]]
* [[SSH 포트 변경하기]]
* [[리눅스 sshpass]]
* [[리눅스 rsh]]
* [[Are you sure you want to continue connecting (yes/no)?]]
* [[리눅스 SSH 서버]]
* [[SSH]]
* [[WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!]]
* [[WARNING: POSSIBLE DNS SPOOFING DETECTED!]]
* [[WARNING: UNPROTECTED PRIVATE KEY FILE!]]


[[분류: SSH]]
[[분류: SSH]]
[[분류: /usr/bin]]
[[분류: /usr/bin]]

2021년 9월 24일 (금) 23:19 기준 최신판

1 개요[ | ]

리눅스 SSH 클라이언트
ssh
/usr/bin/ssh
  • CentOS 최소 설치 패키지에 SSH 서버(sshd)는 있지만, SSH 클라이언트(ssh)는 없다.
  • 최소 설치만 아니라면 대체로 설치되어 있다.

2 SSH[ | ]

  • SSH는 Secure Shell의 줄임말
  • 네트워크를 통해 다른 컴퓨터에 접근 하거나 그 컴퓨터에서 명령 실행 등을 할 수 있도록 해주는 응용 프로그램 혹은 그 프로토콜을 말함
  • Telnet, Rlogin 등의 서비스에서 보안을 좀 더 강화하기 위해 나왔음

3 다른 서버 접속하기[ | ]

명령어
ssh 아이디@호스트주소
실행예시
[root@zetawiki ~]# ssh root@135.79.246.80
root@135.79.246.80's password: P@ssw0rd
Last login: Mon Mar 31 21:58:46 2014 from 246.80.135.79
[root@webserver1 ~]#

4 22번 이외 포트 사용[ | ]

명령어
ssh 아이디@호스트주소 -p포트번호
실행예시
[root@zetawiki ~]# ssh root@example.com -p1022
root@example.com's password: P@ssw0rd
Last login: Mon Mar 31 21:58:46 2014 from 246.80.135.79
[root@webserver2 ~]#

5 같이 보기[ | ]

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