Zum Inhalt springen

Remote Service DFU Modus Wartung

Aus Computech CMS Wiki

Liste der ID von Geräten und Ports

Rückverbindung

ssh localhost -p 19999

Create Key

ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub simon@rz.zeberliedv.ch -p "5984"

Alternative:

cat ~/.ssh/id_rsa.pub | ssh simon@rz.zeberliedv.ch -p "5984" "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

open tunnel

ssh -R 19999:localhost:22 simon@rz.zeberliedv.ch -p "5984"

Testing

ssh -p '5984' 'simon@rz.zeberliedv.ch'

Rückverbindung

ssh localhost -p 19999

Installation

Auto SSH installieren

sudo apt-get install autossh

SSH Konfig als Gateway

sudo nano /etc/ssh/sshd_config

ClientAliveInterval 3
ClientAliveCountMax 9
GatewayPorts yes
AllowTcpForwarding yes