SETTING UP ROOT PASSWORD AND SSH ACCESS IN A CISCO CATALYST 2960G

Set up root password:
 


telnet [your switch ip address]
enable
conf t
username root password [your password here]
line console 0
login local
end

# Check configuration by running:
show running-config

Enable SSH access:
 


conf t
hostname [switch hostname here]
ip domain-name [domain.tld]
crypto key generate rsa
aaa new-model
aaa authentication login default local
aaa authorization exec default local
aaa authorization network default local
username root password [your password here]
end

# Check configuration by running:
show ip ssh
show ssh

# Save changes by running:
copy running-config startup-config