Two Minutes SSH Practice

ssh photo

Let ‘s Practice together Remote Access Connection – SSH

Switch Configuration

Switch(config)#      ! Assign IP Address
Switch(config)#  interface vlan 1
Switch(config-if)#  ip address 192.168.1.254 255.255.255.0
Switch(config-if)#  no shutdown
Switch(config-if)#  exit
Switch(config)#     ! Configure Remote Access for SSH
Switch(config)#  hostname Switch-1
Switch-1(config)#  ip domain-name ip6networks.com
Switch-1(config)#  username ssh-user password ssh-password
Switch-1(config)#  enable secret ip6password
Switch-1(config)#  line vty 0 4
Switch-1(config-line)#  login local
Switch-1(config-line)#  transport input ssh
Switch-1(config-line)#  exit
Switch-1(config)#  crypto key generate rsa
How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
Switch-1(config)# end
Switch-1# copy running-config startup-config

Remote Access to Switch from PC
SSH

Verification

Switch-1#  sh ip ssh
SSH Enabled - version 1.99
Authentication timeout: 120 secs; Authentication retries: 3
Switch-1#  sh ssh
Connection Version Mode Encryption Hmac State       Username
2    1.99 IN aes128-cbc hmac-sha1 Session Started   ssh-user
2    1.99 OUT aes128-cbc hmac-sha1 Session Started  ssh-user
%No SSHv1 server connections running.

Switch Configuration

Switch-1(config)# ip ssh version 2
Switch-1(config)# ip ssh authentication-retries 2
Switch-1(config)# ip ssh time-out 90

Verification

Switch-1#  sh ip ssh
SSH Enabled - version 2.0
Authentication timeout: 90 secs; Authentication retries: 2

Enjoy  !

ခင္မင္စြာျဖင့္
ညီညီမင္း

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.