I know that in Windows when I need something like use the Plink, utility of Putty via SSH runs commands on a remote server bringing the output of the remote to Windows.
Something like that, for example:
plink DEBIAN_SSH cat /var/log/messages
Plink is an SSH utility so it does nothing more than run a command on the remote server and brings its output back, all using SSH.
So, if the local server is also Linux, you can use direct SSH:
ssh [USER-NAME]@[REMOTE-HOST] cat /var/log/messages
Obviously this command can only be executed as ROOT or if the user logging in has permission on VISUDO for example.
Remember also that you need to have an access key on the local server that allows remote connection without needing password on the remote server, otherwise the command will require password. See this link if you need to create a key pair for access.
But I believe this is the way.
If you want to track the log output in real time the correct command is:
tail -f /var/log/messages
References in the links and also in the link below.
http://www.cyberciti.biz/tips/linux-running-commands-on-a-remote-host.html
Yes. Your question is answered :)
– Maniero
Putz, rsrs. I forgot to ask which one :(
– Ale
Which S.O. the client server uses?
– David Schrammel
Local is Windows 7, the remote is Linux.
– Ale