Closed
Description
Note: update proposal is #64962 (comment)
Proposal Details
According to https://datatracker.ietf.org/doc/html/rfc4252#section-5.4:
The SSH server may send an SSH_MSG_USERAUTH_BANNER message at any
time after this authentication protocol starts and before
authentication is successful.
Currently, x/crypto/ssh
allows servers to send a banner before authentication begins. I propose to add:
type ConnMetadata interface {
...
// SendAuthBanner sends a banner to the client. This is useful for sending
// messages during authentication. It is only valid to call this before
// authentication succeeds.
SendAuthBanner(banner string) error
This is useful for sending dynamic banner messages to clients from auth callbacks.
For example, a server can send a link to perform out-of-band authentication of the user if e.g. public key authentication fails. See for example the Check mode in Tailscale SSH: https://tailscale.com/kb/1193/tailscale-ssh#configure-tailscale-ssh-with-check-mode
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Accepted