start red hat linux box remotely, not login, ssh ....
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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? ...
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....
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?
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.
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.....
#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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.