Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perbu/go-api-with-sshd
https://github.com/perbu/go-api-with-sshd
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/perbu/go-api-with-sshd
- Owner: perbu
- Created: 2022-11-14T20:44:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-23T09:37:30.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T18:02:02.103Z (7 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A Golang API with a built-in ssh server
This is made for a talk about Go and ssh and not really meant to be used.
## Compilation
Make sure to put a file with your authorized keys in the "backdoor" directory. It'll be compiled into the application.
Gotta love embedding.## API Usage:
Access the users:
```shell
http http://localhost:8080/user/Bob
http http://localhost:8080/user/Peter
http http://localhost:8080/user/Alice
```Let's give Bob another pet:
```shell
http POST http://localhost:8080/user/Bob/addpet name=Fluffy type=Birb
```## SSH Usage:
```shell
ssh -p 2222 localhost
$ ls
```