Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

225 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssh

Latest Release GoDoc Build Status Codecov branch

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.

The Charm logo

Charm热爱开源 • Charm loves open source

Releases

Packages

Used by

Contributors

Languages