eritbh / 1password-ssh-utils Goto Github PK
View Code? Open in Web Editor NEWStore per-host SSH keys in 1Password and automatically load them before you connect
License: MIT License
Store per-host SSH keys in 1Password and automatically load them before you connect
License: MIT License
Also probably split the key creation logic into its own function in common.sh
and just keep the high-level logic in op-create-identity
1password-ssh-utils/op-create-identity
Lines 101 to 105 in 9e828e9
We can identify whether identities have been pulled by checking for the existence of the ssh_config
file. Make a wrapper that will run the add script only if that file doesn't exist yet, then calls ssh
passing through arguments. Users would be able to use the wrapper by adding e.g. alias ssh="op-ssh"
to their shell config.
This may not actually need a wrapper; an option could be added to the existing script to do nothing if keys have already been pulled, and it could be used as e.g. alias ssh="op-add-identities -z; ssh"
assuming a similar alias structure is available across shells.
Rather than always putting keys and config in /dev/shm/op-ssh-config
, we should instead name the folder something random and store that location as a symlink somewhere in the user's local directory (~/.local/tmp/1password-ssh-temp -> /dev/shm/tg4hn708v34hgofd
or something like that, I need to figure out where the best place for it would be). This will support multi-user systems since each user won't be trying to store their keys in a directory someone else already owns.
I don't actually know what the intended use case of this folder is aside from "shared memory." I'm saying it's okay for now because I am kinda using it to share memory between this program and ssh
...? but I don't buy it. It may be a better idea to just have users mount their own tmpfs
partitions to be safe, but I don't know if that's a reasonable ask for every user since it requires root.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.