Sometime, I need to find out specific log content(such as api call) from log files, those log files exists in several Linux servers.
I have to use SSH to login every server and use grep searching the log. Right now, I plan to write a shell to finish this job automatically. But when I tried to put the "ssh" in a shell, I execute it, it always need password input and show the message on screen.
Is there anyway to make sure there is no alert message about the password input? Or is there is anyway to support using "grep" on multiple servers?
I can't use SSH key authentication as I can do this change on production servers
Because I also plan to provide the result on web page(like JSP,PHP. ) and execute that shell by Java at backend.