cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

hardware:cisco:login.html



Cisco Login User and Password Configuration (SSH, RADIUS)

How to set a password

Host(config)#service password-encryption   <- Turn on password encyption

Host(config)#enable secret xxxxxxxxxx      <- Enable Password


Host(config)#line console 0                <- Console login password
Host(config-line)#password xxxxxxxxxx
Host(config-line)#login

Host(config)#line vty 0 4                <- Telnet login password
Host(config-line)#password xxxxxxxxxx
Host(config-line)#login


Close session with timeout

Console
Host(config)#line console 0
Host(config-line)#exec-timeout  60  0     <- 60minites
Telnet
Host(config-line)#line vty 0 4
Host(config-line)#exec-timeout  60  0     <- 60minites 
unlimited session timeout
Host(config-line)#exec-timeout  0  0

or

Host(config-line)#no exec-timeout 


SSH - How to login with SSH

Host# conf t
Host(config)# username  <USER>  password <PASS>

Host(config)# aaa new-model

Host(config)# ip domain-name example.com
Host(config)# hostname test1
test1(config)# ip ssh version 2
test1(config)# crypto key generate rsa
How many bits in the modulus [512]:2048
Make the connection SSH only
test1(config)# line vty 0 4
test1(config-line)# transport input ssh


RADIUS - How to login with radius server authentication.

RADIUS -> Local Auth




hardware/cisco/login.html.txt ยท Last modified: 2019/06/08 by admin

Page Tools