Cisco "line vty" password encryption

Posted on 2005-04-22
Last Modified: 2012-05-05
I need to know how to hide the "line vty" password from being shown after a "sh run" command.


Question by:llandajuela
    LVL 79

    Accepted Solution

    Add this command
       service password-encryption
    LVL 10

    Expert Comment

    As far as I know the vty passwords are not encryptable, this is why you need to use "enable secret" for the password.
    LVL 10

    Expert Comment

    woops, sorry didn't see this was answered.

    Author Comment

    I thought that the "service password-encryption" command only sets the way the password is stored in the switch, but still was shown after showing the running-config.

    As i can see, i was wrong. Thanks !!!
    LVL 79

    Expert Comment

    Just for the record and for future value of this question to others, here's the official command information:

    To encrypt passwords, use the service password-encryption command in global configuration mode. To restore the default, use the no form of this command.

       service password-encryption

    Usage Guidelines
    The actual encryption process occurs when the current configuration is written or when a password is configured. Password encryption is applied to all passwords, including username passwords, authentication key passwords, the privileged command password, console and virtual terminal line access passwords, and Border Gateway Protocol neighbor passwords. This command is primarily useful for keeping unauthorized individuals from viewing your password in your configuration file.

    When password encryption is enabled, the encrypted form of the passwords is displayed when a more system:running-config command is entered.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now