diff --git a/etc/tunnelkeeper.conf b/etc/tunnelkeeper.conf index 62cd0e2..3091c27 100644 --- a/etc/tunnelkeeper.conf +++ b/etc/tunnelkeeper.conf @@ -5,15 +5,17 @@ debug 0 # Everything in this section obeys the same rules as ~/.ssh/config # Examples +# # Host server1 # Hostname 123.45.67.89 # User ubuntu -# LocalForward 10001 127.0.0.1:22 +# LocalForward 12345 127.0.0.1:22 # # Host server2 # Hostname 123.45.67.90 # User ubuntu -# LocalForward 10002 127.0.0.1:22 +# Port 2222 +# RemoteForward 54321 127.0.0.1:22 [passwords] # Use this section at your own risk, because the passwords are stored in plaintext. diff --git a/tunnelkeeper b/tunnelkeeper index 23d922c..d57114d 100755 --- a/tunnelkeeper +++ b/tunnelkeeper @@ -85,7 +85,7 @@ case "$1" in ;; install ) ruroot - which screen &>/dev/null || yum install -y screen || apt install -y screen + which screen &>/dev/null || yum install -y screen || apt install -y screen || echo "Couldn't install screen" && exit mkdir -p /opt/tunnelkeeper/var mkdir -p /opt/tunnelkeeper/etc if [[ "$BASEDIR" != '/opt/tunnelkeeper/' ]]; then