e25b133483
einrichten mit: ssh-keygen -t rsa -b 4096 ssh-copy-id -i ~/.ssh/id_rsa.pub user@server oder cat id_rsa.pub | ssh server 'cat>> ~/.ssh/authorized_keys'
15 lines
430 B
Desktop File
15 lines
430 B
Desktop File
[Unit]
|
|
Description=SSH Tunnel
|
|
ConditionPathExists=|/usr/bin
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=simono41
|
|
ExecStart=/usr/bin/ssh -NTC -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -i /home/simono41/.ssh/id_rsa -L 12345:localhost:22 pi@mgwywbvcwmot7vir.myfritz.net
|
|
|
|
# Restart every >2 seconds to avoid StartLimitInterval failure
|
|
RestartSec=3
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|