From 982795ddb24fe965ff50c7a1f7851ffe74cbca39 Mon Sep 17 00:00:00 2001 From: jwansek Date: Fri, 25 Feb 2022 21:58:10 +0000 Subject: fixed a few bugs --- docker-compose.yml | 1 + tunnel.conf | 2 +- tunnel.py | 2 +- 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")] -- cgit v1.2.3