使用系统自带的 ssh 服务,无法绑定 22 端口 #7494
Unanswered
chenyu1990
asked this question in
中文讨论
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
已经执行
setcap CAP_NET_BIND_SERVICE=+eip ....gogs
且 getcap 回显正常
su git
进入用户后,./gogs web
可以正常运行但是配置 /lib/systemd/system/gogs.service 守护进程启动,就会一直报错
[FATAL] [...ata/src/gogs/internal/ssh/ssh.go:134 listen()] Failed to start SSH server: listen tcp 0.0.0.0:22: bind: permission denied
Beta Was this translation helpful? Give feedback.
All reactions