I want to do a remote shell to a Linux system and run various commands e.g. to ps and grep for processes and kill them.
I assume I can do something like: rsh that linux scripts do right?Is this the best option for me?
I want to do a remote shell to a Linux system and run various
Share
rshis unencrypted so isn’t widely used anymore and is probably switched off on the remote systems you want to connect to.It would be better to use
SSH. JSch is a open source pure Java library that will make SSH connections and run commands for you.