0.2.0-SNAPSHOT permalink Arrow_down_16x16



  • (add-identity)
  • (add-identity private-key)
  • (add-identity agent private-key)
  • (add-identity agent private-key passphrase)
  • (add-identity agent name private-key public-key passphrase)
Add an identity to the agent.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clj_ssh/ssh.clj:144 top

(defn add-identity
  "Add an identity to the agent."
     (add-identity *ssh-agent* (default-identity) nil))
     (add-identity *ssh-agent* private-key nil))
  ([agent private-key]
     (if (ssh-agent? agent)
       (add-identity agent private-key nil)
       (add-identity *ssh-agent* agent private-key)))
  ([#^JSch agent private-key #^String passphrase]
      (if (instance? Identity private-key)
        (file-path private-key))
      (and passphrase (.getBytes passphrase))))
  ([#^JSch agent #^String name #^bytes private-key #^bytes public-key
    #^bytes passphrase]
      agent name private-key public-key passphrase)))
Vars in clj-ssh.ssh/add-identity: agent and defn instance? name
Used in 0 other vars

Comments top

No comments for add-identity. Log in to add a comment.