Compare commits

1 Commits
Author SHA1 Message Date
marc db088d8f7b gigabix ui 2022-02-22 12:52:17 +01:00
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -3,9 +3,9 @@ Description=AutoSSH tunnel to proxmox server
After=network.target
[Service]
User=marc
# User=marc
Environment="AUTOSSH_GATETIME=0"
ExecStart=autossh -M 0 -o PubkeyAuthentication=yes -o PasswordAuthentication=no -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -NL 8006:localhost:8006 -i ~/.ssh/id_rsa marc@gigabix
ExecStart=autossh -M 0 -o PubkeyAuthentication=yes -o PasswordAuthentication=no -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -NL 8006:192.168.0.16:8006 -i ~/.ssh/id_rsa passepartix
[Install]
WantedBy=multi-user.target
-1
View File
@@ -8,7 +8,6 @@ WantedBy=multi-user.target
[Service]
# User=marc
Type=simple
AmbientCapabilities=CAP_NET_BIND_SERVICE
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -M 0 -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -o PubkeyAuthentication=yes -o PasswordAuthentication=no -NR 7121:localhost:22 -p 7022 -i ~/.ssh/tunnel tunnel@82.165.57.233
Restart=on-failure