ssh icon indicating copy to clipboard operation
ssh copied to clipboard

Easy SSH servers in Golang

Results 69 ssh issues
Sort by recently updated
recently updated
newest added

When I try to connect to a server without specifying a handler on the server. I only defined `SubsystemHandlers` just like it is shown in the [SFTP example](https://github.com/gliderlabs/ssh/blob/adec695b0aa80b0a03f251e1f8c302f0ea192ef5/_examples/ssh-sftpserver/sftp.go#L37-L39). ``` panic:...

Now we can do some clean stuff when a connection is closed.

This change prevents race conditions in programs that call the server's `Close()` or `Shutdown()` methods before `Serve()`. Consider a program that runs both `Serve()` and `Close()` in separate go routines,...

Hello, I am trying to implement a MaxConcurrentConnections for the ssh server. I've notice the library already offers a `ConnCallback` and `ConnectionFailedCallback`. However that seems not to be enough to...

This makes two modifications: 1. It makes sure that Permissions objects are not shared between auth callbacks. This avoids users accidentally setting information in a PublicKey callback for a private...

From [[security] Vulnerability in golang.org/x/crypto](https://groups.google.com/g/golang-announce/c/-nPEi39gI4Q/m/cGVPJCqdAQAJ?utm_medium=email&utm_source=footer): > For example, an attacker may send public keys A and B, and then authenticate with A. PublicKeyCallback would be called only twice, first with...

From https://staticcheck.dev/docs/checks#SA4011: SA4011 - Break statement with no effect. Did you mean to break out of an outer loop? In Go, the break statement only exits the innermost loop it's...

I have an Apache MINA client that tries to open a TCPForwardChannel, but on the server I see the following error `{"time":"2025-12-03T13:17:19.280423473Z","level":"INFO","msg":"ssh: rejected: unknown reason 0 (IOException while opening channel:...