Is there a way to store the server key after a successful connection, the way ssh does?
No matter how many times I connect, I have to always type "yes" to accept the server key. I wish it would be accepted and stored forever.
###############################
amir@amirpc:~$ sudo openconnect uk.cisadd.com -u myusername
POST https://uk.cisadd.com/
Attempting to connect to server xxx.xxx.xxx.xxx:443
SSL negotiation with uk.cisadd.com
Server certificate verify failed: signer not found
Certificate from VPN server "uk.cisadd.com" failed verification.
Reason: signer not found
Enter 'yes' to accept, 'no' to abort; anything else to view:
Connected to HTTPS on XXX.XXX.XXX.XXX
###############################
can write bash script to run openconnect and escape yes?
best way is first time you login into server save your --servercert in clipboard like this
echo "password" | sudo openconnect -u username uk2.cisadd.com --servercert sha25:xxxxxxx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With