Skip to content

Serves the local ssh server pubkey for attestation through a proxy

License

Notifications You must be signed in to change notification settings

flashbots/ssh-pubkey-server

Repository files navigation

ssh-pubkey-server

Goreport status Test status


Getting started

Run CLI

The following will request server ssh pubkey through a proxy, and separately run ssh-keyscan and will return the matching server keys that you can then append to your known_hosts.

./cmd/cli/add_to_known_hosts.sh <attested http proxy> <host ip> >> ~/.ssh/known_hosts

Build HTTP server

make build-httpserver

Run pubkey server

go run ./cmd/httpserver/main.go [--listen-addr=127.0.0.1:8080] [--ssh-pubkey-file=/etc/ssh/ssh_host_ed25519_key.pub]

Install dev dependencies

go install mvdan.cc/gofumpt@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
go install github.com/daixiang0/gci@latest

Lint, test, format

make lint
make test
make fmt

About

Serves the local ssh server pubkey for attestation through a proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published