aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docker-compose.yml1
-rw-r--r--tunnel.conf2
-rw-r--r--tunnel.py2
3 files changed, 3 insertions, 2 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 581f78c..8b51636 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -8,5 +8,6 @@ services:
image: jwansek/reversesshtunnel
network_mode: host
volumes:
+ - /dev/tty:/dev/tty
- ./vps.pem:/app/vps.pem
- ./tunnel.conf:/app/tunnel.conf
diff --git a/tunnel.conf b/tunnel.conf
index b6a01b3..9945979 100644
--- a/tunnel.conf
+++ b/tunnel.conf
@@ -1,5 +1,5 @@
[server]
-host = vps.eda.gay
+host = eden@vps.eda.gay
ssh_port = 2222
keyfile = vps.pem
diff --git a/tunnel.py b/tunnel.py
index 161030f..dce4ffc 100644
--- a/tunnel.py
+++ b/tunnel.py
@@ -4,7 +4,7 @@ import subprocess
CONFIG = configparser.ConfigParser()
CONFIG.read("tunnel.conf")
-cmd = ["autossh", "-nNTv"]
+cmd = ["autossh", "-nNTv", "-o", "StrictHostKeyChecking=no"]
if CONFIG.has_option("server", "ssh_port"):
cmd += ["-p", CONFIG.get("server", "ssh_port")]