Skip to content

Instantly share code, notes, and snippets.

@mwatts272
Created October 10, 2013 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwatts272/6920824 to your computer and use it in GitHub Desktop.
Save mwatts272/6920824 to your computer and use it in GitHub Desktop.
Obtain and output (stdout) via the ssh daemon (sshd) the contents of the desired file - not explicitly a log file.
ssh username@hostname "tail -f /var/www/fbi.gov/logs/classifiedAccess.log" | tee /loacl/storage/path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment