I have two Linux Machine,1st is machine X ,other is machine Y i want to write a java program which will run in machine X..eq test.java ..and when i run that java program it should ask for login credential of machine Y and will execute some command for example
ls -l in machine Y automatically after login. and it should display the output of ls -l
in machine X.
How to do it please help me????
I have two Linux Machine,1st is machine X ,other is machine Y i want
Share
Why use java for this. This can be easily done by using SSH i.e.
If you are running this command on machine X