FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

charmbracelet/ssh: Easy SSH servers in Golang · GitHub

forked from gliderlabs/ssh
 
 

Latest commit

 

History

230 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssh

An SSH server library for Go. ssh wraps the lower-level x/crypto/ssh package with a higher-level API that feels like net/http:

package main

import (
	"io"
	"log"

	"charm.land/ssh"
)

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

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

Features

  • Familiar, net/http-inspired API
  • Handlers for sessions, channels, port forwarding, and more
  • Public key, password, and keyboard-interactive auth
  • PTY support across platforms
  • Used in production by Soft Serve and Wish

Examples

A bunch of great examples are in the _examples directory.

Usage

See the GoDoc reference.

Feedback

We’d love to hear your thoughts on this project. Feel free to drop us a note!

Acknowledgements

This package was originally forked from gliderlabs/ssh

License

MIT


Part of Charm.

Charm热爱开源 • Charm loves open source

About

Easy SSH servers in Golang

Resources

Contributing

Security policy

Stars

50 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL