is there a way to tail a log from remote server without using any user credentials?

Posted by suhprano on Server Fault See other posts from Server Fault or by suhprano
Published on 2011-06-30T00:55:13Z Indexed on 2011/07/01 0:23 UTC
Read the original article Hit count: 118

Filed under:
|
|
|

I run a script tailing a log in a remote server, like so:

ssh userx@someip tail -f /data/current.log|python2.7 monitorlog.py

There are dependencies and service requirements that disallows me to run the script off the remote server. (DB, ACLs, and path to another service is uses)

Is there a way I can tail and monitor a log without using the ssh userx@someip? I thought about generating RSA keys but I think you still need a user to ssh.

© Server Fault or respective owner

Related posts about python

Related posts about linux