mad.tune Posted April 4, 2017 Report Share Posted April 4, 2017 Salut incerc de 1-2 zile sa pun pe un server ssh hostat pe amazon openvpn , cand dau drumu la openvpn nu ma mai pot loga. Am instalat xfce , teamviewer , vnc si hamachi ca sa pot sa ma logez via ssh. Intrebarea e , se poate mai simplu ? Tin sa mentionez ca am firewall oprit pe host si am deschis toate porturile deschise din amazon aws. Singura metoda sa ma logez este sa intru pe teamviewer pornesc hamachi . Quote Link to comment Share on other sites More sharing options...
mad.tune Posted April 5, 2017 Author Report Share Posted April 5, 2017 (edited) am rezolvat nohup sudo openvpn /home/ubuntu/share/linux_udp/London.ovpn & ./check.sh >/dev/null 2>&1& si check.sh #!/bin/sh SERVICE=hamachid; if ps ax | grep -v grep | grep $SERVICE > /dev/null then echo "$SERVICE service running, everything is fine" sudo /etc/init.d/logmein-hamachi restart hamachi login else echo "$SERVICE is not running" sudo /etc/init.d/logmein-hamachi start hamachi login fi Edited April 5, 2017 by mad.tune Quote Link to comment Share on other sites More sharing options...