Video není dostupné.
Omlouváme se.
Configure SSH on CISCO Switch (Easy and Real-world)
Vložit
- čas přidán 19. 08. 2024
- 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:
www.cisco.com/...
www.cisco.com/...
content.cisco....
• How to Configure SSH o...
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