https://github.com/marcusmyers/gh-auth
A Go SSH key management for GitHub Users
https://github.com/marcusmyers/gh-auth
Last synced: 3 months ago
JSON representation
A Go SSH key management for GitHub Users
- Host: GitHub
- URL: https://github.com/marcusmyers/gh-auth
- Owner: marcusmyers
- Created: 2016-06-24T01:48:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-03T02:31:34.000Z (over 8 years ago)
- Last Synced: 2025-01-15T13:59:53.508Z (5 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gh-auth
This is a `go` port of Chris Hunt's
[github-auth](https://github.com/chrishunt/github-auth). I did this
mainly to learn the `go` programming language.### Pairing with strangers has never been so good.
**gh-auth** allows you to quickly pair with anyone who has a GitHub account
by adding and removing their public ssh keys from your
[`authorized_keys`](http://en.wikipedia.org/wiki/Ssh-agent) file.## Install
`$ go install github.com/marcusmyers/gh-auth`## Ussage
### Command Line
```
$ gh-auth
NAME:
gh-auth - allows you to quickly pair with anyone who has a GitHub
accountUSAGE:
gh-auth [global options] command [command options] [arguments...]VERSION:
1.0.0AUTHOR(S):
Mark MyersCOMMANDS:
list gh-auth list
add gh-auth add
remove gh-auth remove
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```### Adding a user
```bash
$ gh-auth add marcusmyers
Successfully added marcusmyers to your authorized keys file
```### Removing a user
```bash
$ gh-auth remove marcusmyers
Removed 2 keys from your authorized_keys file
```### Listing users
```bash
$ gh-auth list-users
marcusmyers
```