https://github.com/tomdewildt/ssh-provision
A simple tool to create ssh keys and distribute them to CentOS servers
https://github.com/tomdewildt/ssh-provision
actions centos golang ssh ssh-client vagrant
Last synced: 3 months ago
JSON representation
A simple tool to create ssh keys and distribute them to CentOS servers
- Host: GitHub
- URL: https://github.com/tomdewildt/ssh-provision
- Owner: tomdewildt
- License: mit
- Created: 2020-04-06T22:41:54.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-04-02T09:13:28.000Z (3 months ago)
- Last Synced: 2025-04-02T09:32:04.456Z (3 months ago)
- Topics: actions, centos, golang, ssh, ssh-client, vagrant
- Language: Go
- Size: 197 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# SSH Provision
[](https://github.com/tomdewildt/ssh-provision/releases)
[](https://github.com/tomdewildt/ssh-provision/actions/workflows/ci.yml)
[](https://github.com/tomdewildt/ssh-provision/actions/workflows/cd.yml)
[](https://codecov.io/gh/tomdewildt/ssh-provision)
[](https://goreportcard.com/report/github.com/tomdewildt/ssh-provision)
[](https://github.com/tomdewildt/ssh-provision/blob/master/LICENSE)A simple tool to create ssh keys and distribute them to CentOS servers.
**Note:** This tool is not production ready.
# How To Run
Prerequisites:
* vagrant version ```2.2.7``` or later
* go version ```1.19``` or later### Development
1. Run ```make init``` to initialize the environment.
2. Run ```make run``` to execute the cli tool.### Test
1. Run ```make init``` to initialize the environment.
2. Run ```make test``` to execute the tests for the cli tool.Run ```make vm/start``` to create the virtual machine, ```make vm/stop``` to stop the virtual machine and ```make vm/remove``` to remove it.
# How To Build
### Linux
1. Run ```make init``` to initialize the environment.
2. Run ```make build``` to build the cli tool.# References
[Go Docs](https://golang.org/doc/)
[Go SSH](https://godoc.org/golang.org/x/crypto/ssh)
[Go Logus](https://godoc.org/github.com/sirupsen/logrus)
[Go Cobra](https://godoc.org/github.com/spf13/cobra)
[Go Validator](https://godoc.org/github.com/go-playground/validator)
[Go Testify](https://godoc.org/github.com/stretchr/testify)
[Go Project Layout](https://github.com/golang-standards/project-layout)