The reason that you can do that in Nginx is because Nginx has support for Proxy Protocol v2. You'll need to find a SSH server/daemon that provides support and performs the logging you require.
Why disable Client IP Preservation and then use Protocol Proxy v2? It seems like extra work when NLB will preserve the client IP for you.
Client IP Preservation for Network Load Balancer endpoints for Global Acceleratorasked 10 months ago
My Network Load Balancer is not enforcing the target Security groupasked 3 years ago
NLB Preserving Client IPAccepted Answerasked 2 years ago
Internal load balancer with static ip and supports HTTPS in AWS EKSasked 2 months ago
Unidirectional TCP keep-alive for Classic Load Balancer and Network Load BalancerAccepted Answerasked 2 years ago
NLB preserving client IP addresses in combination with NACL having source CIDR constraintasked 2 months ago
Network Load Balancer SSH with Proxy V2 and Client IP Preservingasked 2 months ago
Proxy Protocol V2 with Disabling client IP preservation in NLB Target groupsasked 3 months ago
Obtain client IP address through a network load balancer (TCP socket server, Python)asked 5 months ago
Network load balancer and privatelink for static ipAccepted Answerasked 4 years ago