yum -y install ppp
yum -y install pptp
/root/forticlientsslvpn/64bit/forticlientsslvpn_cli --server xx.xx.xx.xx:xxx --keepalive --vpnuser yandun
脚本封装-自动登录
#!/usr/bin/expect
spawn /root/forticlientsslvpn/64bit/forticlientsslvpn_cli --server xx.xx.xx.xx:443 --keepalive --vpnuser xxuser
expect "Password for VPN:"
send "xxx123\r"
expect "*(Y/N)"
send "Y\r"
interact