Skip to main content
February 20, 2025
Solved

How to add a custom port to SSH bookmarks

  • February 20, 2025
  • 4 replies
  • 766 views

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? 

 

Best answer by Manaburner

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. 

4 replies

March 4, 2025

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

December 20, 2025

have a look here  on how to get a custom port for ssh'ing.
@Manaburner @floris_1P 

floris_1P
1Password Employee
March 4, 2025

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?

March 4, 2025

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

 

ManaburnerAuthorAnswer
March 5, 2025

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. 

March 6, 2025

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

March 6, 2025

You have to open the developer experience and click View SSH Agent.

March 6, 2025

Oh, thanks!