Im attempting to write my first bash script to automatically log on my friends to my ssh server. Im a bit confused on the loop or more so how to end the infinite loop however. Here is what I have right now.
#bash script to connect to Mephisto file server with encrpyption keys
for (( ; ; ))
ping -c 3 $remote_server
if [ $? -eq 0 ]
sshfs -p $srv_port $USER@$remote_server:$srv_loc $mountpoint
When I run it I get a syntax error for unexpected token 'done'.
From my research though I thought this would be correct. Where am i going wrong?