I just got hired to work in a lab with a big 'ol linux cluster. I'm a mac/windows guy, so I'm still trying to figure out how to navigate around using a 'nix command line. So far I haven't run into any actual problems, but I have encountered about 5000 different little annoying things related to learning a new system.
The biggest annoyance so far is this: for whatever reason (security, something about how these servers are set up that I don't know enough about yet, etc.) when logging in to the cluster from off campus via SSH, you first have to SSH onto an old imac that's sitting on a desk in the lab, and then from there SSH into the cluster. I've been using the SCP command to copy files from my home mac to the cluster:
first in one terminal window:
my-home-mac:scp file userA@XXX.XXX.XXX.XXX:~/target
then in another terminal window (on which I'm logged in to the lab imac):
lab-imac:scp file userB@YYY.YYY.YYY.YYY:~/target
and the issue is that every time I do that, I'm forced to first SCP the files onto the lab imac (and enter one password), and then SCP the files from there onto the cluster (and enter another password). I'm trying to help develop this C program that's split into 4 dozen files, so I'm moving a lot of files around, and it's driving me nuts.
I guess that I'm going to have to learn shell script, but in the meantime, just to get up and running, I have a few questions:
how can I set up the terminal on my home mac so that I don't have to always enter the passwords for the lab imac or cluster?
Is there any way to SCP (or some other command) files directly from my home mac to the cluster without going through the intermediate?
Is there some way to set up Fugu (or any other SSH client with a gui, for that matter) on my home mac so that it can take into account the intermediate server (the lab imac) and act like it's connecting me directly to the cluster?
I'm a physicist, and everyone else in the lab are biologists, and the guy who set all of this stuff up is long gone, so I'm reaching out to you guys, all of you in the wonderful stack overflow community, to give me a hand here. Thanks.