4 ms·
> ssh process stuck systemd's RuntimeMaxSec should help in this case but I've never had trouble with sshd personally To add more context I use the above servi
by xk3 2y ago
> ssh process stuck
systemd's RuntimeMaxSec should help in this case but I've never had trouble with sshd personally
To add more context I use the above service to ssh from my phone to my laptop via my desktop PC. The service runs on my laptop and binds port 22 of my laptop to port 7070 of my PC but wiregaurd would probably work similarly
- lloeki 2y agoRuntimeMaxSec would have systemd kill a live forwarded connection though?
- xk3 2y agoclosing ssh doesn't close the ports if they are being used, at least with ControlMaster. You need to run something like this to force the ssh daemon to close the port ssh -O cancel -L 4102:localhost:4000 pc but if ControlMaster is stuck maybe autossh is better in that case, or use this: Host * ServerAliveInterval 11