All Projects → thecasualcoder → lazy-connect

thecasualcoder / lazy-connect

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

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to lazy-connect

Fzf Scripts
a collection of scripts that rely on https://github.com/junegunn/fzf
Stars: ✭ 158 (+182.14%)
Mutual labels:  fzf
Zoxide
A smarter cd command. Supports all major shells.
Stars: ✭ 4,422 (+7796.43%)
Mutual labels:  fzf
dotfiles
My doots. Changes are frequent, stability not guaranteed. Supports Arch, CentOS and Darwin.
Stars: ✭ 27 (-51.79%)
Mutual labels:  fzf
Z.lua
⚡ A new cd command that helps you navigate faster by learning your habits.
Stars: ✭ 2,164 (+3764.29%)
Mutual labels:  fzf
Init.nvim
An Opinionated Neovim Config for the Minimalists
Stars: ✭ 194 (+246.43%)
Mutual labels:  fzf
Ansible Role Zsh
Setup antigen with oh-my-zsh, powerlevel10k theme, fzf, autosuggestions, syntax-highlighting
Stars: ✭ 210 (+275%)
Mutual labels:  fzf
Dots
Personal *nix configuration files
Stars: ✭ 136 (+142.86%)
Mutual labels:  fzf
zeno.zsh
zsh fuzzy completion and utility plugin with Deno.
Stars: ✭ 119 (+112.5%)
Mutual labels:  fzf
Twf
Standalone tree view file explorer, inspired by fzf.
Stars: ✭ 196 (+250%)
Mutual labels:  fzf
fzf.aws
🌀 Using fuzzy finder to perform AWS operations on the command line
Stars: ✭ 63 (+12.5%)
Mutual labels:  fzf
Tmux 1password
🔑 Access your 1Password login items within tmux!
Stars: ✭ 167 (+198.21%)
Mutual labels:  fzf
Sway Launcher Desktop
TUI Application launcher with Desktop Entry support. Made for SwayWM, but runs anywhere
Stars: ✭ 188 (+235.71%)
Mutual labels:  fzf
Dotfiles
🐧 Simple, fast, productivity-increaser dotfiles
Stars: ✭ 213 (+280.36%)
Mutual labels:  fzf
Enhancd
🚀 A next-generation cd command with your interactive filter
Stars: ✭ 2,049 (+3558.93%)
Mutual labels:  fzf
nvim-contabs
contextual tabs for vim/neovim
Stars: ✭ 20 (-64.29%)
Mutual labels:  fzf
Kube Fzf
Shell commands using kubectl and fzf for command-line fuzzy searching of Kubernetes Pods.
Stars: ✭ 153 (+173.21%)
Mutual labels:  fzf
Black Void Zsh
🔮 Awesome, Customable Zsh Starter Kit 🌠🌠
Stars: ✭ 206 (+267.86%)
Mutual labels:  fzf
dotfiles
No description or website provided.
Stars: ✭ 20 (-64.29%)
Mutual labels:  fzf
useful-unix-stuff
a collection of useful unix commands/scripts/etc.
Stars: ✭ 64 (+14.29%)
Mutual labels:  ipsec-vpn
Tmux Fzf Url
🚀 Quickly open urls on your terminal screen!
Stars: ✭ 227 (+305.36%)
Mutual labels:  fzf

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+.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].