'Disable telnet and enable ssh on Cisco Switch (IOS) '
06 Aug 2014We recently purchased a Cisco switch for our Hadoop cluster. So I wanted to set up the Cisco switch. But first of all, I want to configure ssh and disable telnet. Let's see how we can do that.
Connect to the switch using telnet or using the console port. (You should enable telnet and give a password from express setup.)
Connect to the switch using telnet or using the console port. (You should enable telnet and give a password from express setup.)
enableEnter "1024" when it prompts for
configure terminal
hostname <switchname>
ip domain-name <domain name>
crypto key generate rsa
How many bits int the modulus [512]:Then run below commands
interface fa0/0If you have a Cisco router use "0 4" instead of "0 14"
ip address 192.168.1.1 255.255.255.0
no shutdown
username <username> priv 15 secret <password>
aaa new-model
enable secret <password>
line vty 0 14Now you can use SSH client to connect to switch.
transport input ssh
end
copy running-config startup-config
Tags
- ssh
- telnet
- cisco catalyst 2960-S
- Cisco