Tailing a remote logfile without opening an SSH connection?
December 27, 2005 12:06 PM
Subscribe
How can I tail a remote logfile without actually opening up an SSH connection each time?
I'd like to be able to use geektool (i'll settle for iterm) to monitor the alert.log on a production database server without having to manually SSH into the box. Is it possible to create a symlink (or whatever) that will let me do this? I do have scp and ssh access to the box.
I suppose I could SCP the file to my local box every n seconds but I'm sure that a better way exists. Is it possible to mount a remote volume over SSH?
posted by neilkod to computers & internet (13 comments total)
So something like:
ssh neilkod@neilkodsserver.com "tail -f /path/to/log/file"
You could then stick that command in a script, then run that script or double-click on it.
The only real trick here is getting it to log in automatically. Google ssh-keys for more.
posted by maschnitz at 12:10 PM on December 27, 2005