Console, VTY, AUX, SSH, & SCP
Console
Section titled “Console”The console line is the physical access method via the device’s console port. There is only one console line (line console 0).
Basic Authentication
Section titled “Basic Authentication”line console 0 password cisco login- The
logincommand tells the router to prompt for the password configured withpassword. - If
loginis not specified, no authentication will be enforced on console access.
Local Authentication
Section titled “Local Authentication”username admin password cisco
line console 0 login locallogin localuses credentials from locally configured users.- Users must enter both a username and password to gain access.
VTY Lines
Section titled “VTY Lines”VTY lines are virtual teletype lines used for remote access.
- VTY line numbers typically range from 0 to 15.
- This means up to 16 users can connect simultaneously.
line vty 0 15 login local transport input { any | ssh | telnet | none } exec-timeout {minutes} {seconds} absolute-timeout {minutes} logout-warning {seconds}login local- uses will need to sign in with a locally confused usertransport input <>- defined what protocols are allowed to use those linesexec-timeout <> <>- defines how long to wait before disconnecting inactive sessionsabsolute-timeout <>- defined at what time the line will be forcibly closedlogout-warning <>- defined at what time a logout warning is issuesd
Usage of the auxiliary port via a cable modem is a legacy use case and technology, and should be disabled for access.
line aux 0 no exechostname R1ip domain-name adamspera.devcrypto key generate rsa modulus 2048ip ssh version 2username admin password cisco
line vty 0 15 login local transport input sshtransport input sshallows only SSH (not Telnet).crypto key generate rsais required to enable SSH.ip ssh version 2since IOS devices run both 1 & 2, this command stops v1.
SCP Server
Section titled “SCP Server”SCP is a file sharing protocol that runs over SSH, and requires AAA new-model.
The following configuration example shows how you can setup a network device to be an SCP server:
aaa new-modelaaa authentication login default localaaa authorization exec default localusername admin secret cisco
hostname MyRouterip domain-name adamspera.devcrypto key generate rsa modulus 2048ip ssh version 2line vty 0 transport input ssh login authentication default
ip scp server enableIOS Login Enhancements
Section titled “IOS Login Enhancements”Helps protect against brute-force attacks.
login block-for 60 attempts 3 within 10This means: If 3 failed attempts occur within 10 seconds, block logins for 60 seconds.