01-18-2024 12:36 AM
line con 0
exec-timeout 5 30
login local
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login local
transport input ssh
line vty 5 15
login local
transport input telnet
hello the panel I would like to have help with my ssh which does not work on a switch I even have it then configure the telnet but I would like to delete the telnet and just activate the SSH with which command to reset the lines VTY?
01-18-2024 01:00 AM
Hello,
did you enable SSH access (sample config below) ? If you do not want any TELNET access, configure lines 5 15 with 'transport input ssh' as well...
Switch> enable
Switch# configure terminal
Switch(config)# hostname YOUR_SWITCH_NAME
Switch(config)# ip domain-name YOUR_DOMAIN_NAME
Switch(config)# crypto key generate rsa
How many bits in the modulus [512]: 2048
Switch(config)# ip ssh version 2
Switch(config)# line vty 0 15
Switch(config-line)# transport input ssh
Switch(config)# username YOUR_USERNAME privilege 15 secret YOUR_PASSWORD
01-18-2024 02:23 AM - edited 01-18-2024 02:25 AM
Hello @akpeliodon
line vty 5 15
login local
no transport input telnet
--> add transport input ssh
If you need SSH, you need basic configuration as @Georg Pauwen list:
- hostname
- ip domain-name
- generate crypto rsa key
Assuming that you already have an unsername and password configured. in local.
01-18-2024 07:34 AM
transport input all (include SSH and telnet and other tech to access via VTY)
transport input SSH (only SSH allow to access via VTY)
transport input telnet (only telnet allow to access via VTY)
MHM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide