Home > Cisco, Switch > SSH configuration without radius for Cisco switch

SSH configuration without radius for Cisco switch


Assuming that your switch IOS support SSH.

Lets go thru on the basic configuration for SSH:

switch(config)# hostname [enter a name for your switch]

switch(config)# ip domain-name [domainname]

switch(config)# crypto key generate rsa
The name for the keys will be: switch.domainname.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.

How many bits in the modulus [512]: 1024 (use 1024)

switch(config)# aaa new-model
switch(config)# aaa authentication login ssh local
switch(config)# aaa authentication login telnet line

switch(config)# ip ssh version 2
switch(config)# ip ssh time-out 60
switch(config)# ip ssh authentication-retries 3

Now that we are done with basic SSH setting, lets configure SSH login with username/password and telnet with line login:

switch(config)# username admin password password
switch(config)# line vty 5 15
switch(config-line)# login authentication ssh
switch(config-line)# transport input ssh

switch(config)# line vty 0 4
switch(config-line)# login authentication telnet
switch(config-line)# transport input telnet

With this, we are done for SSH login for Cisco switch.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: