When accessing my uni servers we ssh to a login machine and from there we ssh to a workstation machine, where I can run python code. I need a password to connect to the login machine, but not the workstation.
I can copy files from these private folders onto my actual laptop via
“scp myname@loginmachine:folder/filename copied_filename”
However, my work occasionally needs me to access files stored in the scratch space of the workstation. When writing python code I can tell access these with the file path is “/scratch/myname/files”.
What is the easiest way, if there is one, to copy files directly from the workstation scratch space to my laptop?
I know that “scp myname@loginmachine:workstation:folder/filename copied_filename” doesn’t work! I don’t really know how I work around two ssh at once.
I can copy from the scratch space to my login homespace, and then copy to my laptop but this is more time consuming than I’d like and I frequently run out of allotted memory space!