How can i run script on other server.
Hi guys ,
I want to run a specific command from one server to another. For example I have a server called A(client) and a server called B(Server). How would i fire a command on Server(B) while working on Client(A). One way of doing it is using ssh "ssh -tq 10.180.8.231 ls -ltr" but whenever i execute the command it ask for the password. How would i reduce effort of putting password again and again. Please find the output of following command. [root@abc .ssh]# find / -name .ssh /root/.ssh |
You should use public key authentication. There are hundreds of howtos on the web. Here's just one.
http://www.debian-administration.org/articles/152 Cheers, Evo2. |
As already said, there are a lot of howto's how to setup your system to handle SSH authentication automatically. Another possibility is (if you have developer experience), to code a small server application that listens on some port on server B, waiting for your remote input, and then executes that input. Such a simple server application design i often included in textbooks on Linux development.
|
All times are GMT -5. The time now is 08:55 PM. |