gliderlabs/ssh

GitHub: gliderlabs/ssh

一个对 Go 标准 SSH 库进行高层封装的包,让开发者能像使用 net/http 一样轻松构建自定义 SSH 服务器。

Stars: 4159 | Forks: 502

# gliderlabs/ssh [![GoDoc](https://godoc.org/github.com/gliderlabs/ssh?status.svg)](https://godoc.org/github.com/gliderlabs/ssh) [![CircleCI](https://img.shields.io/circleci/project/github/gliderlabs/ssh.svg)](https://circleci.com/gh/gliderlabs/ssh) [![Go Report Card](https://goreportcard.com/badge/github.com/gliderlabs/ssh)](https://goreportcard.com/report/github.com/gliderlabs/ssh) [![OpenCollective](https://opencollective.com/ssh/sponsors/badge.svg)](#sponsors) [![Slack](http://slack.gliderlabs.com/badge.svg)](http://slack.gliderlabs.com) [![邮件更新](https://img.shields.io/badge/updates-subscribe-yellow.svg)](https://app.convertkit.com/landing_pages/243312) 这个 Go package 封装了 [crypto/ssh package](https://godoc.org/golang.org/x/crypto/ssh),提供了一个更高层级的 API 用于 构建 SSH server。该 API 的目标是使其像使用 [net/http](https://golang.org/pkg/net/http/) 一样简单,因此 API 非常相似: ``` package main import ( "github.com/gliderlabs/ssh" "io" "log" ) func main() { ssh.Handle(func(s ssh.Session) { io.WriteString(s, "Hello world\n") }) log.Fatal(ssh.ListenAndServe(":2222", nil)) } ``` 这个 package 是由 [@progrium](https://twitter.com/progrium) 在 Glider Labs 参与了近十几个使用 SSH 的项目,并与 [@shazow](https://twitter.com/shazow)(因 [ssh-chat](https://github.com/shazow/ssh-chat) 而闻名)合作后构建的。 ## 示例 在 `_examples` 目录中有许多出色的示例。 ## 用法 [参见 GoDoc 参考。](https://godoc.org/github.com/gliderlabs/ssh) ## 路线图 * Non-session channel handler * 清理 callback API * 发布 1.0 版本 * 高层级 client? ## 赞助商 成为赞助商,让您的 logo 连同指向您网站的链接显示在我们 Github 的 README 上。[[成为赞助商](https://opencollective.com/ssh#sponsor)] ## 开源协议 [BSD](LICENSE)
标签:EVTX分析, Golang, SOC Prime, SSH, 安全编程, 开发工具, 日志审计, 服务器, 网络库