Sign in

Radar · Go · Archive · Week 3 · Jan 13 – 19, 2025

x/crypto/ssh: add ServerConfig.PreAuthConnCallback, ServerPreAuthConn (banner) interface

Worth knowingecosystem

What changed
The proposal is to add the following interface type and configurable callback to golang.org/x/crypto/ssh: ServerPreAuthConn interface with a SendAuthBanner method, and a PreAuthConnCallback field on ServerConfig.
Production impact
The source does not say.
Try it
Create an ssh.ServerConfig, set PreAuthConnCallback, and observe banner handling.
Source
github.com/golang/go/issues/68688

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed