Forum Discussion

muc81's avatar
muc81
New Contributor
1 month ago
Solved

SSH Bookmarks - broken on macOS

Hi, spent half a day on getting my (around 15) SSH keys and config sorted out. No success, at least not in "the way it's meant to be" by 1Password. I'm pretty sure I did everything correctly (all o...
  • muc81's avatar
    1 month ago

    Heureka!

    Just a few more hours and it works. Key paragraph in docs (ideally to be reworked) https://developer.1password.com/docs/ssh/bookmarks/#use-the-configuration-file.

    • Include must be on top of ~/.ssh/config
    • followed by Agent
    • followed by Host definitions

    Example (this would have helped me tremendously):

    # use 1Password to manage ssh key assignment to logins (ssh bookmarks)
    Include "~/.ssh/1Password/config"
    
    # use 1Password as Identity Agent
    Host *
      IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
      # IdentityAgent "~/.1password/agent.sock"
    
    ###
    ###  Home Assistant
    ###
    
    Host homeassistant
      HostName homeassistant.local
      User root
      Port 222     # using a non-standard port

    In 1Password define the custom url field:

    url
    ssh://homeassistant

    And by the way, this also addresses the question of how to use a different port than 22/tcp for ssh connection.