- Specify the Host name.
Router(config)#hostname <host name>
- Define a default domain name.
Router(config)#ip domain-name <Domain Name>
- Generate RSA key pairs.
Router(config)#crypto key generate rsa
- Configure SSH-RSA keys for user and server authentication.
Router(config)#ip ssh pubkey-chain
- Configure the SSH username.
Router(conf-ssh-pubkey)#username <user name>
- Specify the RSA public key of the remote peer.
Router(conf-ssh-pubkey-user)#key-string
- Specify the SSH key type and version. (optional)
Router(conf-ssh-pubkey-data)#key-hash ssh-rsa <key ID>
- Exit the current mode and return to privileged EXEC mode.
Router(conf-ssh-pubkey-data)#end
Thursday, June 21, 2012
SSH configuration
Tuesday, June 19, 2012
some troubleshooting skill related to CPU usage
process cpu threshold type total rising 80 interval 5
event syslog pattern "%SYS-1-CPURISINGTHRESHOLD"
action 1 cli command "enable"
action 1 cli command "<enable password>"
action 3 cli command "show clock | append flash:risecpu_info"
action 4 cli command "show proc cpu sorted | append flash:risecpu_info"
action 5 cli command "show proc cpu history | append flash:risecpu_info"
action 6 cli command "show interface | append flash:risecpu_info"
action 7 cli command "show int switching | append flash:risecpu_info"
action 8 cli command "show ip traffic | append flash:risecpu_info"
action 9 cli command "show ip cef switching stat feature | append flash:risecpu_info"
action 10 cli command "show debug | append flash:risecpu_info"
action 11 cli command "show align | append flash:risecpu_info"
Subscribe to:
Posts (Atom)