Giter Club home page Giter Club logo

rl's Introduction

RL โ€” RegLab / Sherlock utilities

RL is a command-line tool which makes interacting with Sherlock less painful.

Installation

On your local machine:

pip install "rl @ git+https://github.com/ProbablyFaiz/[email protected]"

On Sherlock, you should probably use the pre-compiled binary instead:

wget "https://github.com/ProbablyFaiz/rl/releases/download/v0.4.2/rl" -O ~/.local/bin/rl

Setup

Note

RL requires you to configure Duo and NetID credentials to work. These never leave your device; use of RL is as secure as using an SSH key stored on your device to sign in to a remote server. For the same reason, you should not use RL on a shared computer or share your configuration with others.

Duo

TODO: Add visual instructions for setting up Duo.

  • Go to Duo Central. Add a device with a phone number of the form [some area code]-555-0199 (this is a reserved fake number). If you are asked to confirm the phone number via SMS, exit, delete the device, and try a different area code. Duo only prompts for verification if the number has been used previously, so you can keep trying different area codes until you find one that works.
  • When Duo shows you the QR code, right click and copy its image address.
  • Run rl configure duo. Paste the image address when prompted.

TODO: In the future, RL should generate a valid Duo phone number for you, so you don't have to manually find one.

Sherlock

To access Sherlock, RL also requires your NetID credentials. You can configure them by running rl configure sherlock.

That's it! You should now be able to use rl ssh without needing to enter a Duo code.

Usage

Usage: rl [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  approve    Approve a Duo login request
  cancel     Cancel a running job
  configure  Configure different aspects of rl
  job        Create an interactive job, even on the owners partition
  scp        SCP files to/from Sherlock
  ssh        SSH into Sherlock or into a particular job while on Sherlock
  touch      Temporarily modify files to avoid Sherlock auto-deletion

rl's People

Contributors

probablyfaiz avatar varun-magesh 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.