====== 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)
===== 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...
...edited...
username myuser password 7
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