Did you look at the test class?
http://svn.apache.org/viewvc/mina/sshd/trunk/sshd-core/src/test/java/org/apache/sshd/ClientTest.java?view=markup
Frank

> Date: Mon, 17 May 2010 15:11:15 +0200
> From: [email protected]
> To: [email protected]
> Subject: Simple SSH client to execute remote commands?
> 
> Hey there,
> 
> I'm looking into the SSHD subproject since I need to write a small Java 
> prog which
> simple executes a couple of remote commands on a SSH host and greps the 
> output
> from these commands.
> 
> I've tried using the SshClient.setUpDefaultClient but I wonder if anyone 
> has a concrete
> example on how to send a shell command and work with the output.
> 
> So far I was able to connect to the SSH server successfully but I'm not 
> sure how to proceed.
> 
> Thanks in advance for any help,
> Jan
                                          
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply via email to