Update start.sh
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
remoteport=$(sqlite3 /opt/sshjump/sshjump.db 'select port from sshjump')
|
dir=/opt/sshjump
|
||||||
|
remoteport=$(sqlite3 $dir/sshjump.db 'select port from sshjump')
|
||||||
localport=22333
|
localport=22333
|
||||||
|
|
||||||
autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R $remoteport:localhost:$localport root@remotehost.com -p 22333 -i /opt/sshjump/id_rsa
|
autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R $remoteport:localhost:$localport root@remotehost.com -p 22333 -i $dir/id_rsa
|
||||||
|
|||||||
Reference in New Issue
Block a user