Extend docstring of ssh-add utility function
This commit is contained in:
parent
c43291d23b
commit
45c3b61476
|
@ -837,10 +837,13 @@ This is `db-light' and `solarized-light'."
|
||||||
;;; SSH-Key-Handling
|
;;; SSH-Key-Handling
|
||||||
|
|
||||||
(defun db/add-ssh-key-with-password (key-file password-fn)
|
(defun db/add-ssh-key-with-password (key-file password-fn)
|
||||||
"Add key in KEY-FILE to currently running ssh-agent.
|
"Synchronously add key in KEY-FILE to currently running ssh-agent.
|
||||||
|
|
||||||
PASSWORD-FN is supposed to be a function returning the password
|
PASSWORD-FN is supposed to be a function returning the password
|
||||||
for KEY-FILE."
|
for KEY-FILE; PASSWORD-FN is called on demand.
|
||||||
|
|
||||||
|
This function uses ssh-add to add the key to the currently
|
||||||
|
running ssh-agent and waits for the process to finish."
|
||||||
(with-environment-variables (("SSH_ASKPASS_REQUIRE" "never"))
|
(with-environment-variables (("SSH_ASKPASS_REQUIRE" "never"))
|
||||||
(let* ((key-file (expand-file-name key-file))
|
(let* ((key-file (expand-file-name key-file))
|
||||||
(proc (make-process :name "ssh-add"
|
(proc (make-process :name "ssh-add"
|
||||||
|
|
Loading…
Reference in New Issue