diff --git a/.gitignore b/.gitignore index 264b9c9..a067d2e 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ example-lookupAAAA/example-lookupAAAA example-nohup/example-nohup example-pprof/example-pprof example-shell/example-shell +example-ssh/example-ssh example-systray/example-systray example-ui-controlgallery/example-ui-controlgallery example-ui-radiobutton/example-ui-radiobutton diff --git a/Makefile b/Makefile index 9286f5d..39e7a8d 100644 --- a/Makefile +++ b/Makefile @@ -29,12 +29,14 @@ build: # misc cd example-lookupAAAA; go install # nslookup cd example-json-decode; go install # raw golang byte handling + cd example-ssh; go install # scp example # golang things cd example-pprof; go install # dump out go process internals prep: make -C example-nohup prep + make -C example-sshd prep sub-make: # shell things diff --git a/example-aminal/Makefile b/broken/example-aminal/Makefile similarity index 78% rename from example-aminal/Makefile rename to broken/example-aminal/Makefile index 40646b7..4a55204 100644 --- a/example-aminal/Makefile +++ b/broken/example-aminal/Makefile @@ -5,3 +5,6 @@ build: build-windows: env GOOS=windows GOARCH=amd64 go build + +prep: + go get -v -t -u . diff --git a/example-aminal/config.go b/broken/example-aminal/config.go similarity index 100% rename from example-aminal/config.go rename to broken/example-aminal/config.go diff --git a/example-aminal/logger.go b/broken/example-aminal/logger.go similarity index 100% rename from example-aminal/logger.go rename to broken/example-aminal/logger.go diff --git a/example-aminal/main.go b/broken/example-aminal/main.go similarity index 100% rename from example-aminal/main.go rename to broken/example-aminal/main.go diff --git a/broken/example-sshd/Makefile b/broken/example-sshd/Makefile new file mode 100644 index 0000000..2ed1d98 --- /dev/null +++ b/broken/example-sshd/Makefile @@ -0,0 +1,5 @@ +all: + go install + +prep: + go get -v -t -u . diff --git a/example-sshd/main.go b/broken/example-sshd/main.go similarity index 100% rename from example-sshd/main.go rename to broken/example-sshd/main.go diff --git a/example-sshd/sshd.go b/broken/example-sshd/sshd.go similarity index 100% rename from example-sshd/sshd.go rename to broken/example-sshd/sshd.go diff --git a/example-ssh/Makefile b/example-ssh/Makefile index 35f6334..49dac79 100644 --- a/example-ssh/Makefile +++ b/example-ssh/Makefile @@ -1,3 +1,6 @@ +all: + go build + scp: go run scp.go diff --git a/example-ssh/ed25519.go b/example-ssh/ed25519.go index 624180d..e103863 100644 --- a/example-ssh/ed25519.go +++ b/example-ssh/ed25519.go @@ -1,3 +1,5 @@ +// +build ignore + package main import ( diff --git a/example-ssh/scp.go b/example-ssh/scp.go index c19f144..e7e40cc 100644 --- a/example-ssh/scp.go +++ b/example-ssh/scp.go @@ -1,3 +1,5 @@ +// +build ignore + package main import "bufio" diff --git a/example-ssh/ssh-client.go b/example-ssh/ssh-client.go index a54f5e3..40791e9 100644 --- a/example-ssh/ssh-client.go +++ b/example-ssh/ssh-client.go @@ -1,3 +1,5 @@ +// +build ignore + package main import ( diff --git a/example-ssh/ssh-ed25519.go b/example-ssh/ssh-ed25519.go index bfbe81b..6be2c6e 100644 --- a/example-ssh/ssh-ed25519.go +++ b/example-ssh/ssh-ed25519.go @@ -13,7 +13,7 @@ import "golang.org/x/crypto/ssh" func main() { - host := "mirrors.wit.com" + host := "mirrors.wit.org" port := "22" username := "jcarr" pass := "tryme" diff --git a/example-ssh/with-passwd.go b/example-ssh/with-passwd.go index c0c1c6d..6507e10 100644 --- a/example-ssh/with-passwd.go +++ b/example-ssh/with-passwd.go @@ -1,3 +1,5 @@ +// +build ignore + package main import (