The `Reject` function in the `golang.org.x/crypto.ssh.NewChannel` package is used to reject the creation of a new SSH channel. This function allows the server to signal to the client that it cannot fulfill the request for a specific channel type. It takes in the channel request ID and an error message as parameters and sends a rejection response to the client. This function helps in handling the negotiation process between the SSH client and server by allowing the server to refuse specific channel types that it does not support or cannot handle.
Golang NewChannel.Reject - 30 examples found. These are the top rated real world Golang examples of golang.org/x/crypto/ssh.NewChannel.Reject extracted from open source projects. You can rate examples to help us improve the quality of examples.