Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
HamishWHC
1 month agoNew Contributor
Custom aliases and OpenSSH fields for SSH Bookmarks
SSH bookmarks is a great feature - one I was intending on building myself until I found 1Password's docs for it. However, it is missing a couple important features for me to be truly happy with it.
I setup aliases for my common SSH hosts, and would like to be able to add these into 1Password.
In particular, I want to be able to set custom names for each bookmark. For instance, I SSH to my university's servers typically with `ssh unsw`, not the far longer `ssh zXXXXXXX@loginX.cse.unsw.edu.au`, which is what the bookmark matches on.
In addition, some of these bookmarks are for trusted hosts, where I want to enable `ForwardAgent yes` or similar additional OpenSSH options, and being able to use bookmarks to set these across my devices would be extremely helpful.
Currently, I have a config file local to each computer that contains something like the following for each host:
Host unsw
User zXXXXXXX
HostName loginX.cse.unsw.edu.au
ForwardAgent yes
CanonicalizeHostname yes
This converts `unsw` to the long form user and host that is matched by the bookmark config. Ideally, these could all be configured via 1Password.
A generic syntax for custom OpenSSH options would also solve other missing properties mentioned by others on this forum (e.g. ports).
2 Replies
- muc81New Contributor
have a look here.
HamishWHC . you will need to keep the .ssh/config file anyhow to include 1Password's config file and agent, so I feel this is convenient way for a "per host" configuration and 1P Team can focus on the password stuff.Just hoping 1P Team changes the docs for ssh bookmarks to save other's the hours of investigation to find that out.
1P_Dave- HamishWHCNew Contributor
Sure, but then I have to maintain a way of copying all those per host configs across devices. If these settings were stored in 1P, then I just need a config that loads the 1P bookmarks and sets the agent, and the rest is done automatically.