can anybody show moe how to send from java ssh command ( example ssh [email protected] "ls" ) ? What class do I need ?
|
You can use JSch or any other Java library. Google will help you. Although, usually I find it more convenient to execute ssh commands from build script. E.g., there's an Ant task for that. |
|||||
|
Using sshj:
|
||||
|
an other lib we use is http://www.ganymed.ethz.ch/ssh2/ |
|||
|