You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 1, 2025. It is now read-only.
In bash/zsh, you can define an alias for the `ssh` command which ensures your keys are fetched before connecting to a server, like so:
20
+
21
+
alias ssh="op-ssh-fetch -n [arguments to 'op signin']; ssh"
22
+
17
23
## Usage
18
24
19
25
Note that interactive execution is not supported for any of these scripts, since `op signin` is required for all scripts and itself requires interactive password input.
@@ -35,6 +41,8 @@ Create a new vault item associated with the given host and the current username,
35
41
36
42
Search for SSH key items in your vault and read them all into temporary storage. Public and private keys will be saved to `/tmp/op-ssh-utils/keys` with appropriate permissions, and an SSH config file will be saved to `/tmp/op-ssh-utils/ssh_config` which can be included from your personal SSH config (usually `~/.ssh/config`) via `Include /tmp/op-ssh-utils`.
37
43
44
+
- Use `-n` to do nothing if keys already exist. This is useful for shell aliases.
0 commit comments