ScalaHub

Scala-ssh - Remote Shell Access via SSH

scala-ssh provides remote shell access via SSH for your Scala applications.

Besides remote execution of shell commands, you get access to stdin, stdout and stderr, private key authentication and host configuration via code or from resource file.

Here’s a simple example of how to use the API:

1
2
3
4
5
SSH("repl.scalahub.com") { client =>
  client.exec("scala --version").right.map { res =>
    println("And the scala version is... [drums]... \n" + res.stdOutAsString())
  }
}

scala-ssh is written by Mathias from Spray.io.