add sample ssh package files.

This commit is contained in:
dalbodeule
2025-10-14 03:29:52 +09:00
parent 57caabc6b9
commit c0fe02ae51
3 changed files with 42 additions and 0 deletions

16
main.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import (
"io"
"log"
"github.com/gliderlabs/ssh"
)
func main() {
ssh.Handle(func(s ssh.Session) {
io.WriteString(s, "Hello World\n")
})
log.Fatal(ssh.ListenAndServe(":2222", nil))
}