XMPP JavaScript Library

Shell script to connect to VPN server

UnCategorised, Sachin Puri, 2019-08-26 22:37:06

Prerequisite
 
1. expect
 
2. forticlientsslvpn_cli
 
#!/usr/bin/expect -f

set timeout -1

cd /opt/forticlient-sslvpn/64bit

spawn ./forticlientsslvpn_cli --server <ip-address>:<port> --vpnuser <username>

expect "Password for VPN:" {send -- "<password>"}

expect "to this server? (Y/N)
" {send -- "y
"}


expect eof
 
Add Your Comment
   
    Yes! I want to receive all comments by email

  by 10th Class result on 10-Jul-2019 02:33 am
This platform is great for me, this one only the where you can all information.
  • Reply
  •  2 Like
  •  2 Dislike
  • Report