fork of ssh for access of stuff
Go to file
Jeff Lindsay c3f37d4334 more docs, license, readme.
Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2016-11-30 16:06:57 -06:00
doc.go more docs, license, readme. 2016-11-30 16:06:57 -06:00
example_test.go docs and examples 2016-11-29 17:23:42 -06:00
LICENSE more docs, license, readme. 2016-11-30 16:06:57 -06:00
options.go docs and examples 2016-11-29 17:23:42 -06:00
README.md more docs, license, readme. 2016-11-30 16:06:57 -06:00
server.go docs and examples 2016-11-29 17:23:42 -06:00
session.go more docs, license, readme. 2016-11-30 16:06:57 -06:00
ssh.go docs and examples 2016-11-29 17:23:42 -06:00
util.go initial commit 2016-10-03 16:54:17 -05:00
wrap.go docs and examples 2016-11-29 17:23:42 -06:00

gliderlabs/ssh

Slack GoDoc

This Go package 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:

package main

import (
    "io"
    "github.com/gliderlabs/ssh"
)

func main() {
    ssh.Handle(func(s ssh.Session) {
        io.WriteString(s, "Hello world\n")
    })

    log.Fatal(ssh.ListenAndServe(":2222", nil))
}

This package was built after working on nearly a dozen projects using SSH and collaborating with @shazow (known for ssh-chat).

Usage

See GoDoc reference.

Testing

We could use some help figuring out the best way to test this library. Since there is very little functionality it's adding, it doesn't seem appropriate to duplicate the crypto/ssh tests, however, maybe that's actually the best idea. Perform the same tests using this API.

Contributing

Pull requests are welcome! However, since this project is very much about API design, please submit API changes as issues to discuss before submitting PRs.

Also, you can join our Slack to discuss as well.

License

BSD