Created
March 2, 2016 00:55
-
-
Save iqbalhasnan/093e3e300e6cd3ebadf7 to your computer and use it in GitHub Desktop.
Cisco AnyConnect Command Line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Connect | |
printf "USERNAME\nPASSWORD\ny" | /opt/cisco/anyconnect/bin/vpn -s connect HOST | |
# Disconnect | |
/opt/cisco/anyconnect/bin/vpn disconnect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
consider using apple's keychain to hide credentials