An open API service indexing awesome lists of open source software.

https://github.com/matsubara0507/octkeys

Manage ssh authorized keys by GitHub Account
https://github.com/matsubara0507/octkeys

haskell-application

Last synced: 10 months ago
JSON representation

Manage ssh authorized keys by GitHub Account

Awesome Lists containing this project

README

          

# octkeys

Manage ssh authorized keys by GitHub Account

## Requirement

Haskell Stack or Docker

## Usage

write config YAML file (ref. [example/.octkeys.yaml](example/.octkeys.yaml)).

```
$ octkeys --help
octkeys [options] [input-file]
-h --help Show this help text
--version Show version
-v --verbose Enable verbose mode: verbosity level "debug"
-F PATH --dotssh=PATH ssh config directory path instead of ~/.ssh
--watch Enable watch mode

$ octkeys -F example/.ssh example/.octkeys.yaml
finish: write example/.ssh/authorized_keys
```

## Build

```
$ stack build
```

### Docker

```
$ stack --docker build -j 1 Cabal # if out of memory in docker
$ stack --docker --local-bin-path=./bin install
$ docker build -t matsubara0507/octkeys . --build-arg local_bin_path=./bin
```