Discussion:
[JSch-users] "InputStream" and "BufferedReader" or any other way to get the output of an SSH command
Ulises Vázquez Rocha
2015-02-20 21:52:30 UTC
Permalink
I am able to connecto to the SSH session, and apparently to execute commands but when I try to use the InputStream and BuuferReader, I recive the folowgin message form NetBeans: “cannot find symbol”.

I have imported the Jsch lirary completelly: import com.jcraft.jsch.*;

What am I doing wrong? or is there other way to do it?

Java 6 in NeadBeans 8.

Regards,
Ulises Vázquez Rocha
2015-02-20 22:12:44 UTC
Permalink
I realized that this objects are part of the “java.io” library and I have solved this issue.

Thank you anyway!
Post by Ulises Vázquez Rocha
I am able to connecto to the SSH session, and apparently to execute commands but when I try to use the InputStream and BuuferReader, I recive the folowgin message form NetBeans: “cannot find symbol”.
I have imported the Jsch lirary completelly: import com.jcraft.jsch.*;
What am I doing wrong? or is there other way to do it?
Java 6 in NeadBeans 8.
Regards,
Ulises Vázquez Rocha
2015-02-20 22:12:44 UTC
Permalink
I realized that this objects are part of the “java.io” library and I have solved this issue.

Thank you anyway!
Post by Ulises Vázquez Rocha
I am able to connecto to the SSH session, and apparently to execute commands but when I try to use the InputStream and BuuferReader, I recive the folowgin message form NetBeans: “cannot find symbol”.
I have imported the Jsch lirary completelly: import com.jcraft.jsch.*;
What am I doing wrong? or is there other way to do it?
Java 6 in NeadBeans 8.
Regards,
Loading...