#!/bin/bash
while true
do
if test -e /tmp/sshstart
then
echo Vai >/tmp/log
/usr/bin/ssh -n -N -i /root/.ssh/id_rsa assist@remote.eladit.com -R:2222:localhost:22 </dev/null >/dev/null 2>&1 
fi 
echo sleep >>/tmp/log
sleep 10
done
