Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc660089f2 |
@@ -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:192.168.0.16:8006 -i ~/.ssh/id_rsa passepartix
|
||||
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
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -8,6 +8,7 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user