我们在 AWS 经典 ELB 后面运行两个 gitlab 实例。为了通过 git 启用 git SSH 推送和负载平衡 SSH 请求,我们在 AWS ELB 中添加了 SSH TCP 端口侦听器。在 SSH 日志中,我们看到的是 ELB 的 IP,而不是 git 用户的实际 IP。我试图Proxy protocol在 ELB启用SSH 侦听器,但它破坏了 SSH 服务器。有什么办法可以看到客户端的真实IP吗?
Nov 16 08:38:41 gitlab-1-1b sshd[14760]: Bad protocol version identification 'PROXY TCP4 x.y.z.a 0.0.0.0 61533 22' from x.y.z.a port 9407
Nov 16 08:39:08 gitlab-1-1b sshd[14825]: Bad protocol version identification 'PROXY TCP4 x.y.z.a 0.0.0.0 61554 22' from x.y.z.a port 9417
Run Code Online (Sandbox Code Playgroud)