How do I use the SSH agent in headless Linux?
I want to clone a Git repository that needs SSH authorization. On my desktop this is straightforward: I have the 1Password app installed and the SSH agent enabled in its settings. git clone with an SSH URL makes the desktop app prompt me for approval and I get connected properly.
However I want to clone a repository in a Debian Linux LXC. It does not have any GUI installed; I can only connect to it via a shell. I have the 1Password CLI app op installed and connected properly because op vault list works. However I cannot use the SSH agent:
# ssh-add -l
Could not open a connection to your authentication agent.
My ~/.ssh/config looks like:
Host *
IdentityAgent ~/.1password/agent.sock
More context about my CLI installation which is installed from the 1Password Debian repository:
# apt info 1password-cli
Package: 1password-cli
Version: 2.31.1-2
Maintainer: 1Password <support@1password.com>
Installed-Size: unknown
Homepage: https://agilebits.com/
Vendor: 1Password <support@1password.com>
Download-Size: 6729 kB
APT-Manual-Installed: yes
APT-Sources: https://downloads.1password.com/linux/debian/amd64 stable/main amd64 Packages
Description: The official 1Password command-line tool.
# op --version
2.31.1
I don't have a ~/.1password directory so the agent is not set up or not running. How can I get it running without a GUI to approve its use?
