Forum Discussion

Manaburner's avatar
Manaburner
Super Contributor
7 months ago
Solved

How to add a custom port to SSH bookmarks

I've recently discovered 1Password's support for SSH bookmarks, which is nice. However one of my servers does not use SSH port 22 but a different one. How can I add this custom port to a bookmark so that the generated SSH config file in ~/.ssh/1Password does contain the port info? 

 

  • Hi there,

    I've found the solution to the problem. In my case, I'm not using classic SSH keys but SSH certificates. It seems like the 1P SSH agent does not generate the proper pub keys to authenticate so I get "Permission denied". I've found this while debugging and reducing the number of active keys in agent.toml. 

    Maybe the SSH Key item needs to be extended to allow SSH pub certificates to be added and use those when generating the pub files. 

8 Replies

  • happyboy's avatar
    happyboy
    New Contributor

    Where is the bookmark option actually located? I cannot see it anywhere in 1Password application in Windows, Android or in browser extension.

  • Manaburner's avatar
    Manaburner
    Super Contributor

    Hi there,

    I've found the solution to the problem. In my case, I'm not using classic SSH keys but SSH certificates. It seems like the 1P SSH agent does not generate the proper pub keys to authenticate so I get "Permission denied". I've found this while debugging and reducing the number of active keys in agent.toml. 

    Maybe the SSH Key item needs to be extended to allow SSH pub certificates to be added and use those when generating the pub files. 

  • floris_1P's avatar
    floris_1P
    Icon for 1Password Team rank1Password Team

    Could you explain what you mean with "doesn't support custom ports"? If you add, say, ssh://user@host:2222 to an SSH Key item and you press Connect, it should in fact connect to the host including the custom port. Does that not match your experience?

    • Neureka's avatar
      Neureka
      New Contributor

      When you click Bookmark it doesn't include the port when saving the bookmark. This is what needs to be fixed.


      I didn't realize you could edit the bookmark in the ssh key. It works fine when I manually edit and add the port to the end.

    • Manaburner's avatar
      Manaburner
      Super Contributor

      It "should" yes, but it does not for me. Here's what I see when I click the bookmark link

       

  • Neureka's avatar
    Neureka
    New Contributor

    I'm having this same issue! It seems like SSH bookmarks for 1Password doesn't support custom SSH ports. Please add this functionality!