I was wondering if anyone could tell me the best way to list data from another linux machine and save the output to a file on the local machine.
I have two machines using a passwordless entry with ssh. I want to list the directories of the remote machine and have the output saved onto my local machine.
When I run:
Code:
ssh remoteLinux ls /tmp
I can see a list of files on the remote machine. I just want a the screen output to be placed in a file on my local machine.
Thanks for the help! I'm sure this is an easy one.