Namespaces

 
0.2.0-SNAPSHOT Arrow_down_16x16

session

clj-ssh.ssh

  • (session agent? & options)
Start a SSH session.
Requires hostname. you can also pass values for :username, :password and :port
keys. All other option key pairs will be passed as SSH config options.

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:249 top

(defn session
  "Start a SSH session.
Requires hostname.  you can also pass values for :username, :password and :port
keys.  All other option key pairs will be passed as SSH config options."
  [agent? & options]
  (let [agent-provided? (ssh-agent? agent?)
        agent (if agent-provided? agent? *ssh-agent*)
        hostname (if agent-provided? (first options) agent?)
        options (if agent-provided? (rest options) options)
        options (apply hash-map options)]
    (session-impl agent hostname
                  (or (options :username) (. System getProperty "user.name"))
                  (options :port)
                  (options :password)
                  (dissoc options :username :port :password))))
Vars in clj-ssh.ssh/session: agent defn dissoc let or
Used in 0 other vars

Comments top

No comments for session. Log in to add a comment.