Enable SSH on Cisco switch
Note: this was done on a Cisco C3750
!— Step 1: Configure the hostname if you have not previously done so.
conf t
hostname switchname
!— The aaa new-model command causes the local username and password on the router
!— to be used in the absence of other AAA statements.
aaa new-model
username SomeUsername password 0 MySecretPasswordNoOneKnows
!— Step 2: Configure the DNS domain of the router.
ip domain-name mydomain.com
!— Step 3: Generate an SSH key to be used with SSH.
crypto key generate rsa
ip ssh time-out 60
ip ssh authentication-retries 2
!— Step 4: By default the vtys’ transport is Telnet. In this case,
!— Telnet is disabled and only SSH is supported.
line vty 0 4
transport input SSH
!— Step 5: Save your work!
exit
wr mem