I've searched all around and can't seem to find this... I'm trying to copy a private key to my local machine which is a Mac.
When I fire up terminal on my mac, I get
Jamies-iMac:~ jamie$
So after I ssh into my Ubuntu server I tried
scp /path/to/myfile.txt jamie@Jamies-iMac:/path/to/myfile.txt
which gives me:
ssh: Could not resolve hostname Jamies-iMac: Name or service not known
lost connection
In place of jamie@Jamies-iMac:/path/to/myfile.txt
I've tried some other variations but nothing seems to work. Thanks for your help.