any way to totally script logins?

jason at monsterjam.org jason at monsterjam.org
Thu May 15 08:32:52 PDT 2014


schweet! thanks.. 

Jason

On Thu, May 15, 2014 at 07:55:31AM -0700, Kevin Cernekee wrote:
> 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".
> 

-- 
================================================
|    Jason Welsh   jason at monsterjam.org        |
| http://monsterjam.org    DSS PGP: 0x5E30CC98 |
|    gpg key: http://monsterjam.org/gpg/       |
================================================




More information about the openconnect-devel mailing list