Cisco Misc info

Page Breaks (in sh run etc..)

To stop the page breaks:

# terminal length 0

To resume them:

# terminal no length 0 (or number ex. 24)

Capture console messages to VTY

Console messages are not usually logged to a telnet / ssh vty session, term mon enables this and no term mon disables.

# terminal monitor

Usernames in logins

sw-1(config)#service password-encryption
sw-1(config)#username myuser password topsecret

This results in:-

sw-1#sh run
Building configuration...
  username myuser password 7 <encrypted password>

Each line needs to be configured to use the local password database:-

sw-1(config)#line vty 0 4
sw-1(config-line)#login local

SSH access to switch

Config ssh

sw-1(config)#ip ssh version 2

crypto key generate rsa modulus 2048

ip ssh time-out 60

ip ssh authentication-retries 3

Force ssh only by disabling telnet

line vty 0 4
 password 7 07062341165B4150
 login local
 transport input ssh
line vty 5 15
 password 7 07062341165B4150
 login local
 transport input ssh

rn/cicso-misc.txt · Last modified: 12/02/2018 13:10 by andrew