unkaktus / bobik

🦮 Golden retriever Bobik fetches your password and OTP code and types them into SSH, so you don't have to

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐕 bobik

bobik is a tool to automatically fill OTP tokens into SSH connections, while storing the secret data in the macOS Keychain.

Installation

go install github.com/unkaktus/bobik

Usage

Add new item to the macOS Keychain with the "Where" set to "bobik", "Account" set to the SSH hostname, and with the following content"

{"password":"password_string","totp_url":"otpauth://totp/..."}

where password is your password and totp_url is your TOTP URL (can be obtained by reading the QR code data).

Once set, login to the node embracing your hostname in curly braces:

bobik ssh {lunar}

About

🦮 Golden retriever Bobik fetches your password and OTP code and types them into SSH, so you don't have to

License:MIT License


Languages

Language:Go 100.0%