Jump to content
mad.tune

SSH SERVER + OPENVPN + HAMACHI

Recommended Posts

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 .

:((

 

 

 

 

Link to comment
Share on other sites

am rezolvat :D

 

 

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 by mad.tune
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...