This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
сервис_ssh [2025/01/19 09:15] val [Настройка ssh сервера] |
сервис_ssh [2025/01/20 14:47] (current) val [SSH вместо VPN (привязка к порту сервера)] |
||
---|---|---|---|
Line 201: | Line 201: | ||
# sysctl net.ipv4.ip_local_port_range | # sysctl net.ipv4.ip_local_port_range | ||
- | lan# ssh -N -R 61022:localhost:22 -o ServerAliveInterval=60 student@server.corpX.un | + | lan# ssh -N -R 61022:localhost:22 -o ServerAliveInterval=5 -o ServerAliveCountMax=1 -o ExitOnForwardFailure=yes student@server.corpX.un |
lan# ssh -N -R 61389:192.168.100+X.1NN:3389 student@server.corpX.un | lan# ssh -N -R 61389:192.168.100+X.1NN:3389 student@server.corpX.un |