This is an old revision of the document!
= Lab Machine Overview =
Available Machines
These are the lab machines you may connect to:
- ultra
- core
- cortex
- form
- geometry
Proxy Jumps (Gateways)
When connecting from home or outside the CIM network, you may need to go through one of these gateway servers first:
* 'barn
'
* 'cow
'
* 'pig
'
Remote Access Lab Machines
Direct Access (inside the lab)
Use XQuartz to enable graphical applications:
<pre> ssh -X *yourusername*@*machinename*.cim.mcgill.ca # OR ssh -Y *yourusername*@*machinename*.cim.mcgill.ca # Admin access (more apps permitted) </pre>
Remote Access (outside the lab, from home)
First connect through a proxy jump (example using barn):
<pre> ssh -J *yourusername*@barn.cim.mcgill.ca *yourusername*@*machinename*.cim.mcgill.ca </pre>
General CIM Login
To access the CIM system without going to a specific machine:
<pre> ssh *yourusername*@barn.cim.mcgill.ca </pre>
Mount Local Directory on Remote Machine
<pre> sshfs -o ProxyJump=*yourusername*@barn.cim.mcgill.ca *yourusername*@*machinename*.cim.mcgill.ca:/home/leonardo/*yourusername*/src /Users/*yourusername*/Downloads/group2/01 </pre>
Logout
<pre> logout </pre>
File Access
Copy File from Local → Remote
<pre> scp /Users/*yourusername*/Downloads/group2/01/01a_us_tal.mnc *yourusername*@*machinename*.cim.mcgill.ca:/home/leonardo/*yourusername*/src </pre>
Copy Folder from Local → Remote
<pre> scp -r ./Downloads/group2 *yourusername*@*machinename*.cim.mcgill.ca:/usr/local/*yourusername*/ </pre>
Copy File with ProxyJump
<pre> scp -o ProxyJump=*yourusername*@barn.cim.mcgill.ca ./MeanCurvature/Data/PreprocessedVolumes/resampledUS.nii *yourusername*@ultra.cim.mcgill.ca:/home/leonardo/*yourusername*/src/OBNLM </pre>
Copy Folder from Remote → Local
<pre> scp -r *yourusername*@*machinename*.cim.mcgill.ca:/path/to/server/folder /path/to/local/folder </pre>
'Tip:
' Always replace
*yourusername*
with your CIM login and
*machinename*
with the specific machine name (ultra, core, cortex, form, etc.).