Skip to main content
Feb 20, 2025 9:33 AM UTC
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? 

 

Mar 5, 2025 11:23 AM UTC

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. 

9 replies

Mar 4, 2025 6:01 AM UTC

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

Dec 20, 2025 7:04 PM UTC

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

floris_1P
1Password Employee
1Password Employee
Mar 4, 2025 1:45 PM UTC

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?

Mar 4, 2025 2:59 PM UTC

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

 

ManaburnerAuthorAnswer
Mar 5, 2025 11:23 AM UTC

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. 

Mar 6, 2025 4:18 PM UTC

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

Mar 6, 2025 4:50 PM UTC

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

Mar 6, 2025 5:23 PM UTC

Oh, thanks!