An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/gliderlabs/ssh

Package ssh wraps the crypto/ssh package with a higher-level API for building SSH servers. The goal of the API was to make it as simple as using net/http, so the API is very similar. You should be able to build any SSH server using only this package, which wraps relevant types and some functions from crypto/ssh. However, you still need to use crypto/ssh for building SSH clients. ListenAndServe starts an SSH server with a given address, handler, and options. The handler is usually nil, which means to use DefaultHandler. Handle sets DefaultHandler: If you don't specify a host key, it will generate one every time. This is convenient except you'll have to deal with clients being confused that the host key is different. It's a better idea to generate or point to an existing key on your system: Although all options have functional option helpers, another way to control the server's behavior is by creating a custom Server: This package automatically handles basic SSH requests like setting environment variables, requesting PTY, and changing window size. These requests are processed, responded to, and any relevant state is updated. This state is then exposed to you via the Session interface. The one big feature missing from the Session abstraction is signals. This was started, but not completed. Pull Requests welcome!

Ecosystem
proxy.golang.org
Latest Release
v0.3.8
about 1 year ago
Versions
17
Dependent Packages
5,119
Dependent Repos
26,795
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/gliderlabs/ssh
spec
License BSD-3-Clause
Namespace github.com/gliderlabs
First Release about 9 years ago
Last Synced 1 day ago
Repository
Stars 3,985 on GitHub
Forks 473 on GitHub
Docker Dependents 187
Docker Downloads 369,153,040
Commits 104
Committers 44
Avg per Author 2.364
DDS 0.75
Rankings on proxy.golang.org
Overall Top 0.6%
Dependent packages Top 0.1%
Dependent repos Top 0.1%
Forks Top 1.5%
Docker downloads Top 0.2%