LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   start red hat linux box remotely, not login, ssh .... (https://www.linuxquestions.org/questions/linux-newbie-8/start-red-hat-linux-box-remotely-not-login-ssh-726024/)

karinem 05-14-2009 12:46 PM

start red hat linux box remotely, not login, ssh ....
 
sorry, I think my question wasn't clear. I would like to auto login the linux box remotely without walking to it and entering my user info. Is it some thing that has to do with hte gnome? ...

thanks

TB0ne 05-14-2009 12:57 PM

Quote:

Originally Posted by karinem (Post 3540867)
I am working in the lab that we need to start 100 linux boxes for the operations. We walk to each box and login and start some application. I would like to have a some kind of script and start this machines remotely and also the application (java ... ) without walking to each one. Is there any way that I can implement it?

Will appreciate your help!
Karine

Build a complete startup script that does everything you want. Put it on all 100 systems. Perform an SSH keyswap for a user on all the systems, so that user can do passwordless logins.

Then on your 'central' box, write a very simple shell script, like this:

Code:

ssh <whatever user ID>@<ip address of machine 1> "<your startup shell script>"
...
...
...
ssh <whatever user ID>@<ip address of machine 100> "<your startup shell script>"

When you run that script, it'll go to all 100 machines, and fire off that startup command....

custangro 05-14-2009 01:05 PM

Quote:

Originally Posted by karinem (Post 3540867)
I am working in the lab that we need to start 100 linux boxes for the operations. We walk to each box and login and start some application. I would like to have a some kind of script and start this machines remotely and also the application (java ... ) without walking to each one. Is there any way that I can implement it?

Will appreciate your help!
Karine

You can also take a look at spacewalk...

http://www.redhat.com/spacewalk

A little tricky to set up...but once you do; you can administer/manage hundreds of systems within one console.

:D

-C

chrism01 05-14-2009 06:39 PM

Please don't edit you original post, it just confuses things.
Add a new post instead.
I'm still not clear what you want.
If you want to start an application remotely, just create the ssh keys as mentioned, then write a loop to access each box and start the app.
If you want to ensure a clean start you can have a separate script to login and send the reboot cmd.
you can use TB0ne's code (post #2), but I'd put all the machines addresses in a separate file and read that, so you can use the list in more than one script easily.

TB0ne 05-15-2009 04:38 PM

Quote:

Originally Posted by karinem (Post 3540867)
sorry, I think my question wasn't clear. I would like to auto login the linux box remotely without walking to it and entering my user info. Is it some thing that has to do with hte gnome? ...

thanks

That's what my original reply did for you. You went to one box, and ran something that (essentially), "auto logged in" to 100 other machines, and ran a startup script.....

karinem 05-18-2009 10:02 AM

#2 starts the process on the remote host but it doesn't help the remote start of the machine. If other user walks into that remote machine it still displays the login display. The process is running on that machine but remote user does not see it. I would like to remotely start the machine and the process so when some user walks to that machine he/she sees the application displaying on that machine not the login prompt.

Thanks a lot,


All times are GMT -5. The time now is 11:56 PM.