Skip to content

Latest commit

 

History

History
executable file
·
30 lines (25 loc) · 662 Bytes

README.md

File metadata and controls

executable file
·
30 lines (25 loc) · 662 Bytes

usage:

./sshd-linux-aarch64 
2022/07/10 05:12:18 starting ssh server on port 2222... tty.go

connect:

ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa 127.0.0.1 -p 2222

default password: qgb

build:

$ ./build.sh 
++ go get
++ export CGO_ENABLED=0 GOOS=linux GOARCH=arm64
++ CGO_ENABLED=0
++ GOOS=linux
++ GOARCH=arm64
++ go build -trimpath -ldflags '-s -w -buildid=' -o sshd-linux-arm64
++ export CGO_ENABLED=0 GOOS=linux GOARCH=amd64
++ CGO_ENABLED=0
++ GOOS=linux
++ GOARCH=amd64
++ go build -trimpath -ldflags '-s -w -buildid=' -o sshd-linux-amd64


download:

https://github.com/qgb/sshd/releases