In this post, I mentioned that I was looking for a way to tail log files on a remote computer. Stig commented with a suggestion. You can specify the sudo and tail command to ssh
ssh [email protected] 'sudo tail -f /var/log/messages'
I am using this solution, but there are two problems:
Your password will appear in the clear in the terminal window when entering it for the sudo command
- sudo has to be configured to work on a non-tty terminal, which could be a security hole.