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.

362 B

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