Receiving data

Top  Previous  Next

You may receive data from the SSH server in one of two ways.

 

1. The SshSession#send and SshSession#sendWait methods both return all data that was received from the SSH server between the time the command was issued and the expected shell prompt was received.

 

2. All data received may be captured by enabling debugging using the SshSession#setDebug method. Debugging data is by default directed to System.out. You may redirect this data to another stream using the SshSession#setDebugStream method.





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC