ssh « Session « Java Enterprise Q&A





1. Java library for interactive SSH session (to be able to do multi-part commands)?    stackoverflow.com

I'm currently using a library for SSH within Java but it seems to be lacking the ability to do multipart commands (such as if I do passwd user I have no ...

2. Jsch - One Session Multiple Channels    stackoverflow.com

I managed to execute a single command through ssh with Jsch but when i try to execute a second command it fails For debugging i brought this problem down to this lines:

import ...

3. How do I change directory (cd) with Ganymed SSH API?    stackoverflow.com

I must be missing something here, but how do I call something like "cd /root/some/dir/" with Ganymed SSH API?

  1. I created a Connection object
  2. In the first session created, I called "cd /root/some/dir"
  3. In ...

4. Help with start a ssh session using java    forums.oracle.com

Hi all, I need to write a small java program to do the automate task. However, I couldn't get pass the first command in the task. The program is supposed to read back the question for password from the system. However, I always got nothing when run it. Any help or advice? import java.io.InputStream; import java.io.OutputStream; import java.io.DataInputStream; import java.io.FileOutputStream; import ...