Configure SSH on CISCO Switch (Easy and Real-world)

Опубликовано: 14 Октябрь 2024
на канале: Ferds Tech Channel
1,078
7

Configure SSH on a Cisco switch (Easy and Real-world)
1. Connect a PC to the switch using a console cable.
2. Configure the switch as a SSH server. Use the following commands.
**SW1**
conf t
username cisco privilege 15 secret cisco
!
CONFIGURING SSH 2 Using RSA Key Pairs
!
conf t
ip ssh rsa keypair-name SSH-KEYS !Specifies the RSA key pair to be used for SSH
crypto key generate rsa usage-keys label SSH-KEYS modulus 2048 !Use "crypto key zeroize rsa" to delete the RSA key pair.
ip ssh time-out 60
ip ssh authentication-retries 3
ip ssh version 2
!
line con 0
logging synchronous
login local
exec-time 5 0
!
line vty 0 4
exec-time 5 0
transport input ssh !Specifies that only SSH connection is allowed.
login local
end
wr
!
MONITORING SSH
show ip ssh
show ssh

3. SSH from the PC to test SSH.
**PC**
ssh -l cisco 10.10.10.1


#ccna #cisco #networking

References:
https://www.cisco.com/c/en/us/td/docs...
https://www.cisco.com/c/en/us/support...
https://content.cisco.com/chapter.sjs...
   • How to Configure SSH on Cisco IOS