0

I have the following situation. I am working on my local computer A. I need to run code on a remote server C, which i can only access from remote server B. So to access C from A, i first connect with ssh to remote server B and then from there with ssh to server C.

I will have to send files back and forth quite often between A and C. What is an easy way to do this?

 Ssh connection:
 A->B->C

 Requested file transfers:
 A<->C

1 Answers1

0

Make a script on server "A" with connection initiation on server "B" and command sending that will connect your server "C" and send forward commands needed like "ARGS: %1 %2 %3 etc..."

See how to run command on another server here: "https://stackoverflow.com/questions/1041597/how-to-run-a-script-file-remotely-using-ssh"

Example: ssh user@serverB './scripts/ServerC_command.sh'