Here's a basic guide in using ssh.
Most computers have a command-line interface. That's just like it sounds, you type commands and they do something. For example "ls", that little "L", little "S". It's used to list a directory. There are many commands. So to re-cap, when you see the words "command-line", that means you are going to be typing commands.
Where is the command-line interface on OSX, well you use an Application in Utilities called "Terminal". Why is it called "Terminal", in the old days, you used something called a terminal to run commands using a command-line interface. Starting to sound familiar?
Ok, got that, so open the Terminal app and type "ls" (without the quotes). The output is the listing of your home directory.
Now on to ssh. when you ssh into another computer,
you are making a connection that uses a command-line interface. Notice how the left side prompt has changed. Now this is important, you are now connected to the remote computer and anything you type refers to that remote computer.
Type an "ls" again. Notice how the listing has changed. That's a listing of the remote computer. Now everything is relative to the remote computer.
ssh comes with some nice tools, one of these is "scp". There is a command called "cp" (copy) and "scp" is secure copy. With the normal "cp" that only works on the local computer. "scp" can copy across to/from a remote computer. So when you use "scp", you need to keep in mind, a) where is what I want to copy and b) where do I want to copy to. Also know as source and destination.
So if you made an ssh connection to the AppleTV, you are on the remote computer. And everything is relative to that computer.
So how do you get the log file from the AppleTV to your local computer. "scp" is your friend. You use "scp" on your local computer (not from an ssh connect into the AppleTV)
Let's look at the above command, don't just copy and paste it, you will learn nothing. "scp" ok that the secure copy command. "frontrow@
appletv.local". "frontrow" is the username, appletv.local is shorthand for the IP address that is assigned to the AppleTV. Remember, we are going to copy a file from a remote computer to a local computer.
":/Library/Logs/Console/501/console.log" is the file we want to copy. And the "." you missed means put it in the current directory. "pwd" shows you the current directory.
One more time for those not paying attention;
This copies a file (/Library/Logs/Console/501/console.log) from a remote computer (appletv.local) using the username "frontrow" to the current directory.