Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Simple input/output to a connected server

$
0
0
Hello all.

I have a server that, on connection with a private key, runs a custom command (ie no shell, nor any pseudo-TTY allocation is required) that expects UTF-8 encoded text, multiple lines until a special end-of-packet line, then outputs UTF-8 encoded text, multiple lines until a special (same, actually) end-of-packet line, then waits for the next input "package".

I have managed to connect to the server (verified by the auth.log file), so assume I have a SshClient object which just ran successfully the Connect method.

How can I proceed to repeat the cycle of (send multiple lines, send special line, read multiple lines until special line is read) ?

Thanks in advance.

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>