Questions tagged «socket-activation»

1
通过具有套接字激活功能的systemd用户单元的按需SSH Socks代理未按预期重启
为了到达隔离的网络,我使用ssh -D 袜子 代理。 为了避免每次我将它们添加到时都需要输入细节~/.ssh/config: $ awk '/Host socks-proxy/' RS= ~/.ssh/config Host socks-proxy Hostname pcit BatchMode yes RequestTTY no Compression yes DynamicForward localhost:9118 然后,我创建了一个systemd用户服务单元定义文件: $ cat ~/.config/systemd/user/SocksProxy.service [Unit] Description=SocksProxy Over Bridge Host [Service] ExecStart=/usr/bin/ssh -Nk socks-proxy [Install] WantedBy=default.target 我让守护程序重新加载新的服务定义,启用新服务,启动它,检查其状态,并验证它是否在侦听: $ systemctl --user daemon-reload $ systemctl --user list-unit-files | grep SocksP …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.