Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Easy SSH servers in Golang

License

NotificationsYou must be signed in to change notification settings

gliderlabs/ssh

Repository files navigation

GoDocCircleCIGo Report CardOpenCollectiveSlackEmail Updates

The Glider Labs SSH server package is dope. —@bradfitz, Go team member

This Go package wraps thecrypto/sshpackage with a higher-level API forbuilding SSH servers. The goal of the API was to make it as simple as usingnet/http, so the API is very similar:

package mainimport ("github.com/gliderlabs/ssh""io""log" )funcmain() {ssh.Handle(func(s ssh.Session) {io.WriteString(s,"Hello world\n")     })log.Fatal(ssh.ListenAndServe(":2222",nil)) }

This package was built by@progrium after working on nearly a dozen projects at Glider Labs using SSH and collaborating with@shazow (known forssh-chat).

Examples

A bunch of great examples are in the_examples directory.

Usage

See GoDoc reference.

Contributing

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

Also, you canjoin our Slack to discuss as well.

Roadmap

  • Non-session channel handlers
  • Cleanup callback API
  • 1.0 release
  • High-level client?

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

License

BSD


[8]ページ先頭

©2009-2025 Movatter.jp