You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dustoair d3cc885465
1st init
3 years ago
.gitignore 1st init 3 years ago
go.mod 1st init 3 years ago
main.go 1st init 3 years ago
main_test.go 1st init 3 years ago
readme.md 1st init 3 years ago

readme.md

ssh in golang

build arm64 on oracle

cd /root
rm -rf gssh
git clone https://git.sre.ink/go/gssh.git
cd gssh
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on   go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on   go build -v -a -o gssh main.go
rm -rf /usr/bin/gssh
mv gssh /usr/bin/
gssh -h 127.0.0.1 -p 22 -u root -p 123456 -c ls