SSH access on Cisco IOS Router
The minimal configuration to access a Cisco IOS router with SSH is the following:
-
DNS domain specification:
router(config)# ip domain name isc.heia-fr.ch
-
Creation of the RSA keys:
You can select here the key size, take a least 2048 bytes.router(config)# crypto key generate rsa
-
Create a local user
router(config)# aaa new-model router(config)# username cisco password cisco router(config)# service password-encryption
-
Select SSH as the only method to access your device:
router(config)# line vty 0 4 router(config-line)# transport input ssh
SSH Server configuration on IOS XRv
The command are not the same with IOS XRv. Here are the different steps:
-
Creation of the RSA keys:
You can select here the key size, take a least 2048 bytes.router#crypto key generate rsa
-
Activate the SSH Server:
router(config)# ssh server v2
-
If the SSH access is made in a particular VRF:
router(config)# ssh server vrf mgmt
-
Select SSH as the only method to access your device:
router(config)# line default transport input ssh
Dernière mise à jour:
3 October 2023