any way to totally script logins?

Kevin Cernekee cernekee at gmail.com
Thu May 15 07:55:31 PDT 2014


On Thu, May 15, 2014 at 5:13 AM, Jason Welsh <jason at monsterjam.org> wrote:
> hey folks, I just discovered openconnect and really like it so far, the
> only thing I am looking for now is a way to run a script and get logged
> in.. Right now, it still prompts me for a password.. Is there a way
> (like with vpnc) to obfuscate the password in a file somewhere so that I
> dont have to type it in at login?

You can use something like:

echo mypass > password.txt
openconnect --non-inter --authgroup users --user test
--passwd-on-stdin asa < password.txt

If you wanted to get creative you could pipe it through "base64 -d".



More information about the openconnect-devel mailing list