scala-ssh
scala-ssh copied to clipboard
Remote shell access via SSH for your Scala applications
Hello, if I execute "cat > /tmp/foo.txt" with the command input "a a a a". The command hang forever and never return. How do you signal the EOT/EOF aka Control-D?
the lazy vals(exitCode,exitErrorMessage, i/o streams etc.) gives null instead of Option for the channel as result of a remote command causes "Segmentation fault" or "Floating point exception" where the exception...
``` scala SSH("host", h) { client => client.upload(file.getAbsolutePath, file.getName) } ``` Here's output log. ``` log 11:09:44.452 [main] INFO net.schmizz.sshj.common.SecurityUtils - BouncyCastle registration succeeded 11:09:44.490 [main] WARN net.schmizz.sshj.DefaultConfig - Disabling...
Hi, I'm getting the above exception from sshj when trying to use key based authentication (full exception printed below) using a slightly modified version of the example in the Readme....
I can't login to remote server using public key. Mac 10.10.1, jdk 8 ``` java.lang.SecurityException: class "org.bouncycastle.openssl.PEMParser"'s signer information does not match signer information of other classes in the same...
Does anyone have any thoughts in regards to providing a non blocking (i.e. backed by Scala Future's) api for SSH?
I tried this ``` SSH("192.168.1.5") { client => val result = client.exec("find .").right.get val stream = new SequenceInputStream(result.stdOutStream, result.stdErrStream) val buff = new BufferedSource(stream) buff.getLines().foreach { println } } ```...
How can I connect to a host by means of an HTTP proxy?
Hi, is there any example in streaming the resulting output instead of just getting back the result in one go? It would be great if the readme or the wiki...