Cisco 2960S enable SSH

Post Reply
zemerdon
Site Admin
Posts: 239
Joined: Mon Jan 23, 2023 8:13 pm

Cisco 2960S enable SSH

Post by zemerdon »

1- Give the switch a hostname (hostname xxxxxx)

2- Give the switch a domain name (ip domain-name xxx.com)

3- Create a username and password (username xxxxxxxx password xxxxxx)

4- Use SSH v2 (ip ssh version 2)

5- Generate RSA keys (crypto key generate rsa general-keys modulus 2048)

6- Configure local login on the VTYs (line vty 0 15 (enter) login local)

7 - Allow SSH on the VTYs (line vty 0 15 (enter) transport input ssh)

SSH to the switch and when prompted use the username and password to login. (I'll assume you've taken care of the enable password)

Hope this helps.
zemerdon
Site Admin
Posts: 239
Joined: Mon Jan 23, 2023 8:13 pm

Re: Cisco 2960S enable SSH

Post by zemerdon »

enable
conf t
hostname 2960S
enable secret passwordhere
ip domain-name c2960.local
crypto key generate rsa general-keys modulus 2048
ip ssh version 2
username usernamehere privilege 15 password passwordhere
aaa new-model
aaa authentication login default local
write memory
reload
Post Reply