Code Monkey home page Code Monkey logo

anyconnect's Introduction

Anyconnect

Describe

This script is to solve the problem that the Cisco anyconnect client cannot remember the password. You need to enter the password every time you start the client.

Instructions

  1. Make sure the Cisco anyconnect client is installed on the system
  2. Edit the script to modify the value of the CONN_INFO array The format is "VPN_ADDRESS USERNAME PASSWORD", one per line, there is a space between the address and the username, there is a space between the username and the password, be careful not to forget the double quotes ("")
    ...
    CONN_INFO=(
    "VPN_ADDRESS USERNAME PASSWORD"
    "vpn.github.com:8843 zhangsan 123456"
    )
    ...
    Save and exit the script after the modification is complete
  3. Execute the script
    chmod +x ./connect-vpn.sh
    ./connect-vpn.sh
    You can add an alias to this script, and execute the alias every time. For example
    echo "alias conn='/Users/zhangsan/scripts/connect-vpn.sh'" >> ~/.zshrc
    source .zshrc
    In this way, you can execute conn every time in the terminal.
  4. Script parameter description
    -h, --help                                                        Show this help message.
    -c|-con|-conn|-connect, --c|--con|--conn|--connect                Connect VPN Server.
    -d|-dis|-disconn|-disconnect, --d|--dis|--disconn|--disconnect    DisConnect VPN Server.
    -r, --r|--reconn|--reconnect                                      Reconnect VPN Server.
    -s|-state|-status, --s|--state|--status                           View VPN connection status.
    -stats, --stats                                                   View VPN Statistics.

anyconnect's People

Contributors

henry-proj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.