Method to enable Quiet (wodSSH / wodSSH.NET)
Is there a method or property that is equiv to -q Linux command line flag. We are connecting to a server that has Banner property set, and need to disable those message from the client side.
Is there a method or property that is equiv to -q Linux command line flag. We are connecting to a server that has Banner property set, and need to disable those message from the client side.
by wodDamir
, (6812 days ago) @ Michael
Hi Michael,
When is that command executed?
Can you do that using any other client? Like Putty perhaps?
Also, did you try setting Command Property?
Regards,
Damba
by Michael
, (6812 days ago) @ wodDamir
Here's the code from putty source SSH.C
/*
* Now is a convenient point to spew any banner material
* that we've accumulated. (This should ensure that when
* we exit the auth loop, we haven't any left to deal
* with.)
*/
{
int size = bufchain_size(&ssh->banner);
/*
* Don't show the banner if we're operating in
* non-verbose non-interactive mode. (It's probably
* a script, which means nobody will read the
* banner _anyway_, and moreover the printing of
* the banner will screw up processing on the
* output of (say) plink.)
*/
if (size && (flags & (FLAG_VERBOSE | FLAG_INTERACTIVE))) {
char *banner = snewn(size, char);
bufchain_fetch(&ssh->banner, banner, size);
c_write_untrusted(ssh, banner, size);
sfree(banner);
}
bufchain_clear(&ssh->banner);
}
So I guess the question really is if you set the Command method, does Wod reset the interactive flag?
by Michael
, (6812 days ago) @ Michael
Also Cygwin ssh allows -q flag. We setting the Command property to execute a remote command, and in the DataReceived event we see the contents of /etc/issue.
by wodDamir
, (6812 days ago) @ Michael
Michael,
I've talked to our programmers on the issue, and we believe that the easiest way to remove the banner would be to simply wait for prompt (you can use WaitFor method for this). This will remove data previously received by the component (banner).
You can later Receive everything that arrives using DataReceived Event.
Regards,
Damba

We have recently completed a large 1200+ location project where reliable Telnet and SSH connectivity was required. wodSSH worked flawlessly and allowed our staff to complete our project ontime and within budget.

...I'm extremely impressed with the product, it represents excellent value for money...

You did a great job on wodSSH and wodSSHServer! I got a lot for very little money. Thanks!

...with WOD's excellent support I was able to bypass Winsock and focus on the task at hand...

May I say how nice it is to work with components so complete and self-explanatory that using them in my application is as instinctive as though I wrote them myself?

Thank you very much for the rapid responses. I was a little nervous about dealing with a company that is on a different continent from me. You have proven my concerns to be unfounded.

Fantastic product by the way, it has helped us tremendously on a daily basis. Keep up the good work.

Brilliant, even works on the mobile phone...

...what I really like is that wodSSH and wodSFTP components work excellently and are constantly being improved...

Fantastic product by the way, it has helped us tremendously on a daily basis. Keep up the good work.

