कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

ssh-op

moodykong द्वारा

DevOps & Cloud
353clawskills.sh द्वारा बताए गए डाउनलोड
1व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Use the ssh-op helper script to load an SSH private key from 1Password (op) into an in-memory ssh-agent.

विवरण

यह स्किल क्या करती है

ssh-op is a wrapper script that loads an SSH private key from 1Password into an in-memory ssh-agent before running ssh. No private key is written to disk. Configuration is portable via a skill-local config.env file.

Keeps private keys out of the filesystem by loading them into memory only for the duration of the shell session.

इसे कब इस्तेमाल करें

  • Connecting to a remote server using a 1Password-managed SSH key
  • Setting up SSH access on a new machine without copying key files
  • Running port-forwarding sessions with a key stored in 1Password
  • Onboarding a teammate by sharing vault/item configuration
  • Testing SSH host aliases defined in a managed ~/.ssh/config block

उदाहरण वर्कफ़्लो

इनपुट

User asks: connect to my-server using the SSH key stored in 1Password

एजेंट
  1. 1

    Check that op, ssh, ssh-agent, and ssh-add are available and op whoami succeeds

  2. 2

    Read SSH_OP_VAULT_NAME and SSH_OP_ITEM_TITLE from config.env

  3. 3

    Run op read to retrieve the private key and pipe it into ssh-add

  4. 4

    Exec ssh with the provided host alias and arguments

आउटपुट

Authenticated SSH session to my-server with no key written to disk

आवश्यकताएँ

  • 1Password CLI (op) installed and signed in
  • 1Password account with a vault containing the SSH key item
  • OP_SERVICE_ACCOUNT_TOKEN environment variable if using a service account flow

इंस्टॉलेशन

clawhub install moodykong/ssh-op

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक