본문 바로가기
Cisco/L2

Cisco Switch SSH접속하기

by 좀빅 2020. 2. 27.

#Cisco Switch 장비에 SSH프로토콜을 사용한 접속 방법

 

[ Cisco Switch ssh 설정 (예시) ]

ip ssh version 2                             ## 버전2 *장비에 따라 지원하지 않을 수도 있음

hostname [host-name]                         ## 장비명 설정

ip domain-name [domain-name]                 ## ssh 설정을 위한 domain-name설정

username [id] privilege 15 secret [password] ## Privilegegs레벨은 15로 설정, 
                                             ## ID 'uas' Password는 암호화를 적용하여 'uas/.123'

crypto key generate rsa                      ## RSA 키 설정 및 모듈 Bit값 Default는 512
['1024']

line vty 0 15                                ## VTY 텔넷 설정 0~15번까지 설정
transport input ssh                          ## VTY 텔넷 인증 수단을 SSH로 변경
login local                                  ## VTY 텔넷 User로 로그인 인증 수행
logging synchronous                          ## VTY 접속 이후 로그 출력시 프롬포트 출력 조절

do wr                                        ## 환경설정 모드에서 설정값 저장

 

[ Cisco Switch ssh 설정 ]

ip ssh version 2

hostname Cisco_SW01

ip domain-name	zombic365.com

username uas privilege 15 secret uas.123

crypto key generate rsa 1024

line vty 0 15
transport input ssh
login local 
logging synchronous

do wr

 

[접속 결과]

zombic365:~ ryan$ ssh uas@xxx.xxx.xxx.xxx
The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established.
RSA key fingerprint is SHA256:BeKO0fvR96AiE3pBy66zAijTZhSwoIJ8GvPcS1hPByw.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'xxx.xxx.xxx.xxx' (RSA) to the list of known hosts.
Password:

Cisco_SW01#

 

댓글