I don't know a lot about VPNs but I'd like to connect to a Fortinet VPN with Ubuntu.
I can connect on Windows using Forticlient just by entering the policy server (vpn.theserver.com) and then it asks for a user/password. I use IPSec.
I have a script that is in backup.sh file (chmod 775) :
rsync -e 'ssh -p 31234' -avlz --delete --stats --progress --copy-links [email protected]:/home/admin/rsync /home/myname/rsync/foo/
When I call it manually, everything works well (and I don't have to enter my passphrase). But when I call it from cron, it just doesn't work.
I used the same setup on the computer of my coworker (who has the same access than me) and it works well.
What's wrong?