I'm trying to transfer files between a server and my mac using the terminal and SSH. If I haven't already logged into the server I can simply type:
scp -r firstname.lastname@example.org:/classes/difficultclass/bin/prog1 ~/Desktop
However, if I've already logged into the server via SSH, this isn't going to work as the home directory is on the host machine not my client machine I'm working from.
Is there a good way I can change directory to my client mac, simply refer to it to transfer files?