Coder Social home page Coder Social logo

petderek / sshb0t Goto Github PK

View Code? Open in Web Editor NEW

This project forked from genuinetools/sshb0t

0.0 0.0 0.0 3.22 MB

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.

License: MIT License

Makefile 55.12% Go 39.59% Dockerfile 5.29%

sshb0t's Introduction

sshb0t

make-all make-image 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

sshb0t's People

Contributors

azillion avatar ben-st avatar cstaubli avatar github-actions[bot] avatar jessfraz avatar mcrmonkey avatar petderek avatar robstrong avatar toc-me[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.