Copying files to a local machine
Using scp over multiple nodes is painful. This is a small script that does the job:
- Log onto the control server using ssh with remote port forwarding:
ssh smeuren@fastx3.slac.stanford.edu -Y -R 40000:localhost:40000
ssh smeuren@mcclogin -Y -R 40000:localhost:40000
ssh fphysics@facet-srv20 -Y -R 40000:localhost:40000 - Start the server script on your local computer
- Run the client script on the control computer and send a file outside
Synchronizing source code from a local machine with a server
- create an ssh port tunnel to the control network (see above)
- run local.py in a local folder that contains files that should be transferred to the server
- run remote.py in a folder on the server (ATTENTION: it will overwrite files)