Skip to content

A clojure wrapper for JSch SFTP (fork of ccollins/sfteepee to add support for key based logins)

License

Notifications You must be signed in to change notification settings

jeffmarder/sfteepee

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clojure wrapper for JSch SFTP

JSch can be found here. It is also in clojars and can be added to your project (if using leiningen) like this: (defproject example_project "0.0.1" :description "Example" :dependencies [[org.clojure/clojure "1.2.0"] [org.clojure/clojure-contrib "1.2.0"] [com.jcraft/jsch "0.1.42"]])

Building

requires leiningen lein clean && lein deps && lein compile && lein jar

Usage

(with-connection [opts & body])

Examples

(with-connection
  {:user "foo"
   :keyfile "/path/to/my/keyfile"
   :host "my.sftp.host.example.com"}
  (cd "somewhere")
  (grab "aFile.txt"))

(with-connection
  {:user "foo"
   :keyfile "/path/to/my/keyfile"
   :passphrase "opensesame"
   :host "my.sftp.host.example.com"}
  (cd "somewhere")
  (grab "aFile.txt"))

(with-connection
  {:user "foo"
   :password "bar"
   :host "my.sftp.host.example.com"}
  (cd "somewhere")
  (grab "aFile.txt"))

Available options

  • user
  • password
  • keyfile
  • passphrase
  • host
  • port (default 22)

About

A clojure wrapper for JSch SFTP (fork of ccollins/sfteepee to add support for key based logins)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%