A bot for keeping your ssh authorized_keys up to date with user's GitHub keys, **only** use if you enable 2FA & keep your keys updates.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor update vendor Sep 25, 2018
version initial commit Nov 13, 2017
.gitignore update makefile Sep 25, 2018
.goosarch update generated project files Jul 16, 2018
.travis.yml update travis Dec 29, 2018
.traviskey update travis Dec 29, 2018
Dockerfile update travis Dec 29, 2018
LICENSE update generated project files Mar 11, 2018
Makefile update makefile Sep 25, 2018
README.md Update ToC for README.md Dec 29, 2018
VERSION.txt Bump version to v0.3.6 Sep 25, 2018
basic.mk update travis Dec 29, 2018
go.mod update vendor Sep 25, 2018
go.sum update vendor Sep 25, 2018
main.go update cli pkg Jul 16, 2018
main_unix.go initial commit Nov 13, 2017
main_windows.go initial commit Nov 13, 2017

README.md

sshb0t

Travis CI GoDoc Github All Releases

A bot for keeping your ssh authorized_keys up to date with user's GitHub keys from https://github.com/{username}.keys.

WARNING: Only use this if you have two factor auth enabled for your GitHub account and you make sure to delete old keys from your account.

Table of Contents

Installation

Binaries

For installation instructions from binaries please visit the Releases Page.

Via Go

$ go get github.com/genuinetools/sshb0t

Running with Docker

$ docker run -d --restart always \
    --name sshb0t \
    -v ${HOME}/.ssh/authorized_keys:/root/.ssh/authorized_keys \
    r.j3ss.co/sshb0t --user genuinetools --keyfile /root/.ssh/authorized_keys

Usage

$ sshb0t -h
sshb0t -  A bot for keeping your ssh authorized_keys up to date with user's GitHub keys.

Usage: sshb0t <command>

Flags:

  --url       GitHub Enterprise URL (default: https://github.com)
  --user      GitHub usernames for which to fetch keys (default: [])
  -d          enable debug logging (default: false)
  --interval  update interval (ex. 5ms, 10s, 1m, 3h) (default: 30s)
  --keyfile   file to update the authorized_keys (default: /home/jessie/.ssh/authorized_keys)
  --once      run once and exit, do not run as a daemon (default: false)

Commands:

  version  Show the version information.

Analytics