1
0
Fork 0
mirror of synced 2024-11-16 13:05:35 -05:00
zimfw/modules/ssh
Eric Nielsen a5d59943ce [ssh] Update init.zsh
based on https://stackoverflow.com/a/48509425/2654518, which is based on
http://rabexc.org/posts/pitfalls-of-ssh-agents

Current code has a few issues: depends on `SSH_AUTH_SOCK` and
`SSH_AGENT_PID` env variables, which might not be available in every
shell session; and tries to create a new socket for agent-forwarding by
checking `SSH_AUTH_SOCKET` instead of `SSH_AUTH_SOCK`.

Also, it's safer to create the env file with 066 flags and in the user
home directory.
2018-09-12 08:04:32 -05:00
..
init.zsh [ssh] Update init.zsh 2018-09-12 08:04:32 -05:00
README.md add ssh documentation 2015-12-15 18:36:36 -05:00

SSH

Provides a convenient way to load ssh-agent. This enables one-time login and caching of SSH credentials per session.

.zimrc Configuration

  • zssh_ids=(id_rsa) add any identities (from ~/.ssh) to this list to have them loaded and cached on login.