Score:1

Connect to openconnect server from the command line?

ng flag

I tried finding a similar question and did but there's a caveat though, older questions use --no-cert-check option which is removed due to security reasons and I don't know the exact fingerprint for the server as it will change from time to time. I need to pass two inputs to the openconnect command using something like echo -e "arg1\narg2" but was not successful.

How can I do it? (below is the command I used):

echo -e "yes\nmypassword" | openconnect serveraddress --user="myuser" --passwd-on-stdin
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.