Firstly I need to know exactly what command I will use for the reverse connection. This is mine:
- ssh loldongs@loldongs.info -i /home/loldongs/.ssh/lin -N -T -R 4510:localhost:22
#!/bin/bash #make-run.sh #make sure a process is always running. export DISPLAY=:0 #needed if you are running a simple gui app. process='ssh loldongs@loldongs.info -i /home/loldongs/.ssh/lin -N -T -R 4510:localhost:22' makerun='ssh loldongs@loldongs.info -i /home/loldongs/.ssh/lin -N -T -R 4510:localhost:22' if ps ax | grep -v grep | grep "$process" > /dev/null then exit else $makerun & fi exit
No comments:
Post a Comment