Skip to content
DEPRECATED: Please use instead
Branch: master
Clone or download
Pull request Compare This branch is 6 commits behind hnakamur:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

go-sshd Build Status Go Report Card GoDoc MIT licensed

A sshd written in Go. Forked from Only supported request types are exec, shell, pty-req, and window-change.

Example usage

Run the example server.

Get the source.

go get
cd $GOPATH/src/

Generate the sever host key.

ssh-keygen -t rsa -b 2048 -f id_rsa -N ''

Run the server at the address

go run main.go

Run a ssh client

Run a ssh client. You can see the password in the example source.

$ ssh -o UserKnownHostsFile=/dev/null -p 2022 foo@
The authenticity of host '[]:2022 ([]:2022)' can't be established.
RSA key fingerprint is SHA256:wr...(masked)...wc.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[]:2022' (RSA) to the list of known hosts.
foo@'s password:
$ ls
id_rsa  main.go
$ exit
Connection to closed.



You can’t perform that action at this time.