This file contains hidden or 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
sudo apt-get install expect | |
wget http://kb.cloud.it/files/tar-gz/forticlientsslvpn_linux_4-0-2281-tar.gz | |
tar xzf forticlientsslvpn_linux_4-0-2281-tar.gz | |
sudo mv forticlientsslvpn /opt/ | |
cat > sslvpn << EOF | |
#!/usr/bin/expect -f | |
set timeout -1 | |
cd /opt/forticlientsslvpn | |
spawn ./forticlientsslvpn_cli --server HOST:PORT --vpnuser USER | |
expect "Password for VPN:" {send -- "PASS\r"} |