Options

Telnet & SSH sessions setup commands

2URGSE2URGSE Member Posts: 220 ■■■□□□□□□□
I went over this lab a few times, but just wanted to clarify:


line vty 0 4 will this allow up to 5 telnet connections to the router?

line con 0 will this allow a single console connection?

login local can someone briefly explain this one?



Thanks,
A+
Network+
CCENT (formally CCNA certified)
ICE (Imprivata Certified Engineer)

Comments

  • Options
    gosh1976gosh1976 Member Posts: 441
    I believe if you are use the login local command when configuring a vty line then the local authentication database will be used. so if you telnet in to the device it will ask you for a username and password and not just a password.

    line vty 0 4 does indeed reference 5 vty connections.
    Isn't there usually just one console port on a device? regardless I believe settings under line console 0 would reference the one connection

    somebody with a better understanding might be able to give a better answer
  • Options
    phoeneousphoeneous Member Posts: 2,333 ■■■■■■■□□□
    2URGSE wrote: »
    login local can someone briefly explain this one?



    Thanks,

    Uses local user database instead of a password. So you must create user accounts first before issuing this command otherwise you could lock yourself out.
  • Options
    2URGSE2URGSE Member Posts: 220 ■■■□□□□□□□
    phoeneous wrote: »
    Uses local user database instead of a password. So use must create user accounts first before issuing this command otherwise you could lock yourself out.

    Thank you! icon_lol.gif
    A+
    Network+
    CCENT (formally CCNA certified)
    ICE (Imprivata Certified Engineer)
  • Options
    SomnipotentSomnipotent Member Posts: 384
    2URGSE wrote: »
    I went over this lab a few times, but just wanted to clarify:


    line vty 0 4 will this allow up to 5 telnet connections to the router?

    line con 0 will this allow a single console connection?

    login local can someone briefly explain this one?



    Thanks,

    1. cisco likes to count from 0... your lines are 0, 1, 2, 3, & 4.

    2. 1 console port = 1 connection. you can also plug into the aux 0 port if you have it configured and it will give you the same thing. the aux port is mainly used for dial backups

    3. login local means to look for the username password in the router itself. if you just apply login, the IOS will ask for the password and that is all. if you use login local, you would assume that you've created a username/priviledge/password database (which you should if you've have if you've configured ssh).
    Reading: Internetworking with TCP/IP: Principles, Protocols, and Architecture (D. Comer)
  • Options
    thenjdukethenjduke Member Posts: 894 ■■■■□□□□□□
    do not forget the transport input telnet ssh command as well.
    CCNA, MCP, MCSA, MCSE, MCDST, MCITP Enterprise Administrator, Working towards Networking BS. CCNP is Next.
  • Options
    2URGSE2URGSE Member Posts: 220 ■■■□□□□□□□
    thenjduke wrote: »
    do not forget the transport input telnet ssh command as well.

    Yes, I see that in there. The lab walks you through the commands, but I Just wanted to make sure I understood exactly what each them does.

    There is also the RSA key generation command.

    crypto key generate rsa

    Is this to authenticate something in the login process?
    A+
    Network+
    CCENT (formally CCNA certified)
    ICE (Imprivata Certified Engineer)
  • Options
    SomnipotentSomnipotent Member Posts: 384
    2URGSE wrote: »
    Yes, I see that in there. The lab walks you through the commands, but I Just wanted to make sure I understood exactly what each them does.

    There is also the RSA key generation command.

    crypto key generate rsa

    Is this to authenticate something in the login process?

    it generates a key used for authentication... do a show run and you'll see it.

    crypto key generate rsa general mod 1024
    Reading: Internetworking with TCP/IP: Principles, Protocols, and Architecture (D. Comer)
  • Options
    mgeorgemgeorge Member Posts: 774 ■■■□□□□□□□
  • Options
    mtorresmtorres Member Posts: 63 ■■□□□□□□□□
    2URGSE wrote: »
    Yes, I see that in there. The lab walks you through the commands, but I Just wanted to make sure I understood exactly what each them does.

    There is also the RSA key generation command.

    crypto key generate rsa

    Is this to authenticate something in the login process?

    This creates the key ssh uses to encrypt the data being sent back and forth ie passwords, commands, etc. You have to issue the ip domain-name domain.com command in order for this to work, replace domain.com with whatever your domain name is.
  • Options
    thenjdukethenjduke Member Posts: 894 ■■■■□□□□□□
    2URGSE wrote: »
    Yes, I see that in there. The lab walks you through the commands, but I Just wanted to make sure I understood exactly what each them does.

    There is also the RSA key generation command.

    crypto key generate rsa

    Is this to authenticate something in the login process?

    This create the keys for authentication to be used for sdm via https or ssh.
    the command is crypto key generate rsa general keys and make it 1024 :)
    CCNA, MCP, MCSA, MCSE, MCDST, MCITP Enterprise Administrator, Working towards Networking BS. CCNP is Next.
Sign In or Register to comment.