File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,24 @@ done from a scala shell:
28
28
scala> peak6.util.ScalaSshShell.generateKey("src/main/resources/test.ssh.keys")
29
29
30
30
Note that the shell does not work when running under sbt's console.
31
+
32
+ To run the included example, run the following with sbt 0.7:
33
+
34
+ $ sbt update
35
+ $ sbt compile
36
+ $ sbt package
37
+ $ scala -cp './lib_managed/scala_2.9.1/compile/*:./target/scala_2.9.1/scala-ssh-shell_2.9.1-0.1.jar' peak6.util.ScalaSshShell
38
+
39
+ Now you can ssh in from a separate window, using "fluke" for the
40
+ password:
41
+
42
+ $ ssh -l user -p 4444 localhost
43
+ user@localhost's password:
44
+ Connected to test, starting repl...
45
+ Welcome to Scala version 2.9.1.r0-b20110831114755 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0).
46
+ Type in expressions to have them evaluated.
47
+ Type :help for more information.
48
+ test> 1 to 10 sum
49
+ res0: Int = 55
50
+ test> println("Hello World!")
51
+ Hello World!
You can’t perform that action at this time.
0 commit comments