Jun 26, 2012 at 4:41 PM
Edited Jun 26, 2012 at 4:41 PM
Is it possible to use ssh.net to send a string to the connected port instead of an actual command?
for example if I use PuTTY/Plink and connect on then type into the prompt the characters I type are sent on SSH as a string, not specifically as a command
This is slightly different to if I run the command:
plink testProfile -l userName myString
In this case plink attempts to start a shell/command and run myString as a command, which for my particular server the attempt will be refused.
The reason I would like to send the data as a general string instead of specifically a command is that my server is an embedded server which attempts to forward the data directly out on to a serial port. Thus it refuses the attempt to start a shell/command
with plink I can solve this by using a slightly different command:
echo myString | plink testProfile -l userName
Does ssh.net allow this type of transmission?
PS: Im using vb, but I can probably convert any C# example to vb if absolutely necessary ;)