Skip to content

Instantly share code, notes, and snippets.

@iqbalhasnan
Created March 2, 2016 00:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iqbalhasnan/093e3e300e6cd3ebadf7 to your computer and use it in GitHub Desktop.
Save iqbalhasnan/093e3e300e6cd3ebadf7 to your computer and use it in GitHub Desktop.
Cisco AnyConnect Command Line
# Connect
printf "USERNAME\nPASSWORD\ny" | /opt/cisco/anyconnect/bin/vpn -s connect HOST
# Disconnect
/opt/cisco/anyconnect/bin/vpn disconnect
Copy link

ghost commented May 19, 2016

consider using apple's keychain to hide credentials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment