Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all articles
Browse latest Browse all 3862

Answered: Best way to read from a SshChannel?

$
0
0

Actually, the SshChannel class is very low API. For common cases you don't need to use it.

If you want to use SSH protocol for file transfers, use rather Sftp class or Scp class.
If you want to script a shell, use rather Scripting class.

If for some reason you really want to use low level SshChannel class then call Receive in a loop as you have written.


Viewing all articles
Browse latest Browse all 3862

Trending Articles