IT

[네트워크] 시스코(CISCO) SSH 설정

바이바이하이 2023. 2. 27. 16:46
반응형

1. SSH 옵션 설정하기

router#conf t
router(config)#ip ssh version 2
router(config)#line vty 0 15
router(config-line)#transport input ssh

 

2. SSH ACL 설정하기

router(config)#ip access-list standard ssh-acl // acl ssh-acl 생성
router(config-std-nacl)#permit ip host 10.10.10.10 any // 10.10.10.10 허용

router(config)#line vyt 0 15 // vty 0~15 세션 설정
router(config-line)#access-class ssh-acl in // 세션 0~15에 acl ssh-acl 적용

위 처럼 설정 시 10.10.10.10 만 SSH 접속이 허용됩니다.

 

그럼 좋은하루 보내세요!

반응형