I am running a c program on an ec2 instance (ubuntu). I want to capture the output of that c program and save it to an excel file on my local machine.
I have already tried what is listed here How do I scp the (huge) output of a command directly to a remote machine? but when I try to connect to my local machine from my ec2 instance nothing happens. It just hangs until I inevitable ctrl + c
My local machine is a mac. I ran ifconfig to get my ip and whoami to see what account I should ssh to. It's not working. What is the proper syntax to pipe output from remote machine to my local machine?