https://github.com/zk/swish-scala
A Scala library for ssh automation.
https://github.com/zk/swish-scala
Last synced: 6 months ago
JSON representation
A Scala library for ssh automation.
- Host: GitHub
- URL: https://github.com/zk/swish-scala
- Owner: zk
- Created: 2009-11-25T17:55:12.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2010-02-25T20:59:50.000Z (almost 16 years ago)
- Last Synced: 2025-06-20T13:17:07.523Z (6 months ago)
- Language: Scala
- Homepage:
- Size: 85 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE.MIT.txt
Awesome Lists containing this project
README
Swish - A scala library for ssh automation
==========================================
Alpha quality. Expect api changes, etc.
Inspired by ruby's Net:SSH (http://net-ssh.rubyforge.org/)
MIT Licensed (http://www.opensource.org/licenses/mit-license.php)
Basic Usage:
/*
Server config to connect zkim@localhost with password 'mypass'
*/
val serverConfig = ServerConfig(host = "localhost", user = "zkim", password = "mypass")
Swish.withServer(serverConfig) {
conn =>
println(conn.exec("ls -aul").output)
}
See /test/napplelabs/swish/example for more examples, specifically:
### Simple scala
Dead-simple connect and execute command example.
### CustomCommands.scala
Modularization of exec, commands encapsulate error handling and marshalling. I'm still trying to figure out what the api for this should look like.
### On Deck
A better dsl