0

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?

1
  • 1
    JSCH Commented Jan 30, 2013 at 10:16

2 Answers 2

5

rsh is 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.

Sign up to request clarification or add additional context in comments.

Comments

0

JSch is a good choice to do such kind of tasks.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.