Skip to content

Issues with SSH when using 1Password SSH agent #64

@kquinsland

Description

@kquinsland
  • I have the latest version of sake
  • I have searched through the existing issues

Info

  • OS

    • Linux
    • Mac OS X
    • Windows
    • other
  • Shell

    • Bash
    • Zsh
    • Fish
    • Powershell
    • other

Given this yaml:

# ❯ /bin/cat sake.yaml
# See: https://github.com/alajmo/sake/blob/main/docs/config-reference.md
servers:
    test:
        desc: try sake tool on test server
        host: test.zone.corp
        local: false
        work_dir: /home/karl.quinsland
        tags:
            - zone.corp

tasks:
    docker_container_list:
        desc: Lists all docker containers
        cmd: docker container list --all

And this command:

❯ sake --verbose --config=./sake.yaml run docker_container_list --tags=zone.corp
error: dial unix ~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock: connect: no such file or directory

But that is most certainly a file:

❯ ls -lah ~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
Alias tip: lsa ~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
srw------- 1 karl.quinsland staff 0 Mar 19 09:19 '/Users/karl.quinsland/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock'=

And the relivant part of my ~/.ssh/config:

Host *
     IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"

With this version info:

❯ sake --version
Version: 0.15.1
Commit: 72850d1
Date: 2023-09-25T09:55:59Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions