안녕하세요.
오늘은 C9300 스위치에 SSH version2 설정하는 방법에 대해서 알아보겠습니다.
CISCO(config)#crypto key generate rsa usage-keys label tsi modulus 2048 CISCO(config)#ip ssh rsa keypair-name tsi CISCO(config)#ip ssh time-out 120 CISCO (config)#ip ssh authentication-retries 2 CISCO (config)#ip ssh version 2 |
IP SSH Version2가 동작중인지 확인합니다
TSI-CORE-1#show ip ssh SSH Enabled - version 2.0 Authentication methods:publickey,keyboard-interactive,password Authentication Publickey Algorithms:ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,x509v3-ecdsa-sha2-nistp256,x509v3-ecdsa-sha2-nistp384,x509v3-ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512,x509v3-rsa2048-sha256 Hostkey Algorithms:rsa-sha2-512,rsa-sha2-256,ssh-rsa Encryption Algorithms:chacha20-poly1305@openssh.com,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-gcm,aes256-gcm,aes128-ctr,aes192-ctr,aes256-ctr MAC Algorithms:hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com KEX Algorithms:curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512 Authentication timeout: 120 secs; Authentication retries: 2 Minimum expected Diffie Hellman key size : 2048 bits IOS Keys in SECSH format(ssh-rsa, base64 encoded): tsi Modulus Size : 2048 bits ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8nSDDZYuJN/N6SDsUqBMv/U9EXkwwbKVF1Io306Zx eiflK5kGHYm5yC9EaEagSQcs2LZjS1fa9s6wKo0TId4+J45APh3Y0W2KMmYSCWzaXOgstVbFQMWNzITq uutzVWZJKvKV5VPCyXORBuavM9AbAlRcSaUlnxyD85OF50pX98XgZoQV50q2QYrVr/nEcv+1hyYefcLh Zy1UzLpNsUWhX8kU+9EeDNqveX/OMQr/VKxiLCcmJEoIhQ9Yo/ELu0V5VHqAE2WK93fSeDDF02EdzktT fKvhWVLcKELiuiody/RBVEk2c++q/LBIaWw9pdE2Q1vPxMrouhQa4BGp8ljV TSI-CORE-1# |
테스트를 위해서 int vlan1에 IP를 10.1.1.1 설정합니다.
interface Vlan1 ip address 10.1.1.1 255.255.255.0 end |
그리고 VTY를 설정합니다
TSI-CORE-1(config)#line vty 0 15 TSI-CORE-1(config-line)#login local TSI-CORE-1(config-line)#transport input ssh TSI-CORE-1(config-line)#end |
PC에 IP를 10.1.1.2 설정하고 케이블을 스위치 VLAN1 포트에 연결합니다.
지금까지 C9300 스위치에 SSH version2를 설정하고 테스트 하는 방법에 대해서 알아보았습니다
지금까지 글을 읽어주셔서 감사합니다.
'CISCO > 스위칭' 카테고리의 다른 글
C9300-Stack Switch IOS Upgrade (1) | 2024.10.24 |
---|---|
Cat9300 Switch Stack Installation (1) | 2024.10.24 |
Cat9300L Switch License Registration to cisco CSSM (0) | 2024.10.02 |