GithubHelp home page GithubHelp logo

ludoplex / lazy-connect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thecasualcoder/lazy-connect

0.0 0.0 0.0 24 KB

Shell function to fuzzy search an IPSec VPN by name and connect to it automatically.

Shell 100.00%

lazy-connect's Introduction

lazy-connect

Shell function to fuzzy search an IPSec VPN by name and connect to it automatically.

Prerequisite

  1. fzf
  2. OATH Toolkit
brew install oath-toolkit fzf

Install

Using Homebrew

brew tap thecasualcoder/stable
brew install lazy-connect

Manual

git clone https://github.com/thecasualcoder/lazy-connect.git ~/.lazy-connect
sudo ln -s ~/.lazy-connect/lazy-connect /usr/local/bin/lazy-connect

Usage

lazy-connect - Shell function to fuzzy search an IPSec VPN by name
               and connect to it automatically.

-i    - Initialize lazy-connect. Stores the TOTP secret and VPN list.
-r    - Refresh vpn list in ~/.config/lazy-connect .
-n    - Do not fill the password automatically. Instead copy the password to clipboard.
-h    - Show this help.

YubiKey Support

Prerequisite

  1. yubikey-manager

To use TOTP from YubiKey set the following environment variable

export LAZY_CONNECT_TOTP_GENERATOR=yubikey
export LAZY_CONNECT_TOTP_QUERY=<name of the issuer>

Note

  • The secret key to generate TOTP is stored in Keychain on Mac under default login keychain. You may need to enter your login password to allow access to Keychain.
  • You need to add your Termainal emulator app that invokes the function to Security & Privacy -> Accessibility. It is necesssary because the script interacts with the UI. There are other ways via CLI to avoid UI interaction but they are all broken in OS X 10.12+.

lazy-connect's People

Contributors

arunvelsriram avatar jskswamy avatar caalberts avatar leoorion avatar jpninanjohn avatar hmoniaga 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.