Remote Access: Difference between revisions
mNo edit summary |
m (→File Transfer) |
||
Line 40: | Line 40: | ||
The best method for transfering files depends on where you want to store your files: | The best method for transfering files depends on where you want to store your files: | ||
#Files in your home directory on HPC are only available within HPC | #Files in your home directory on HPC are only available within HPC | ||
#Files on Network Shares are available on other locations (such as a TU Delft workplace, weblogin.tudelft.nl or other HPC clusters) | #Files on Network Shares are available on other locations (such as a TU Delft workplace, weblogin.tudelft.nl or other HPC clusters)<br>Copying files to these shares is best done using the manuals on [https://webdata.tudelft.nl/ webdata.tudelft.nl] | ||
When you want to copy files to the HPC you can copy them from Network Shares | |||
=== (Windows) Network Shares === | |||
==== Authenticate ==== | |||
It is possible to access the group and bulk shares of your research group. It is required that you have logged in using your password. If you logged in with an ssh public/private keypair instead of your password, you need to authenticate first with: | |||
kinit | |||
This will ask you to type your password. This authentication is valid for about eight hours, after that you have to authenticate again. | |||
==== Basic access ==== | |||
Now just type (depending on which share you want to use): | |||
cd /tudelft/$USER/staff-group/ | |||
cd /tudelft/$USER/student-group/ | |||
cd /tudelft/$USER/staff-bulk/ | |||
cd /tudelft/$USER/staff-umbrella/ | |||
and navigate from there to the directories that you need. | |||
You can access your Windows home directory as well. The subdirectories of the home directories are followed by '''the first letter of your surname''' and then your netid.<br> | |||
For example, if your name would be John Smith and your netid jsmith; | |||
cd /tudelft/$USER/staff-homes/s/jsmith | |||
cd /tudelft/$USER/student-homes/s/jsmith | |||
==== Important note ==== | |||
The <code>$USER</code> part in the commands above is a shell variable that contains your netid. You can also substitute <code>$USER</code> for your netid yourself. If your netid would be <code>jsmith</code>, the command | |||
cd /tudelft/jsmith/staff-homes/s/jsmith | |||
would work just as well. Please do not substitute <code>$USER</code> with anything else than your own netid!<br> | |||
'''If you use anthing other than your own netid you'll create a recipe for potential disaster!'''<br> | |||
If you and a coworker need to access te same data on a group or bulk volume at the same time, you both use different paths.<br> | |||
So <code>/tudelft/jsmith/staff-group/</code> only works if your netid is jsmith and <code>/tudelft/pbrown/staff-group/</code> only works works if your netid is pbrown.<br> | |||
If both netids have the same privileges for accessing the group volumes, then these commands give access to the same data. | |||
=== Command line === | === Command line === | ||
=== Filezilla === | === Filezilla === |
Revision as of 11:40, 28 September 2021
Access to the HPC-clusters is limited from outside the TU Delft network for security reasons.
When you use a VPN-connection direct access from your desktop/laptop to the HPC is possible. You can use your application of choice for this connection.
When you don't use a VPN you should connect through a Bastion server, which is described below.
Bastion
The TU Delft offers two bastion servers. These servers can be used to tunnel your traffic to the HPC.
- linux-bastion.tudelft.nl for employees or guests.
- student-linux.tudelft.nl for students.
Console access
The explanations below are the simplest way to connect to a console on an HPC. Advanced configs describes more complex configurations which save time when regularly using the connection.
Command line
When your desktop/laptop supports ssh from the console, you can connect to the bastion server and from there you can connect to the HPC:
[user@home]$ ssh <netid>@linux-bastion.tudelft.nl netid@linux-bastion.tudelft.nl's password: [netid@bastion]$ ssh <netid>@hpcXX.tudelft.net netid@hpcXX.tudelft.net's password: Welcome [netid@hpcXX]$
- Replace <netid> with your NetID (also remove the <>)
- When your a student replace <netid>@linux-bastion.tudelft.nl with <netid>@student-linux.tudelft.nl
- Replace <netid>@hpcXX.tudelft.net with the HPC you are connecting to.
Putty
When your desktop/laptop doesn't support ssh from the console, you can use Putty (it may already be installed).
- Session Settings
Fill in the name of the TU Delft SSH server linux-bastion.tudelft.nl (student-linux.tudelft.nl for students), and select the SSH protocol (port 22): - OPTIONAL: Connection>SSH Settings
Select Share SSH connections if possible (this means that you will not have to authenticate when you start a second session): - OPTIONAL: Connection>SSH>Tunnels Settings (This allows other applications to tunnel trafic through the bastion host)
- Source Port: 1080
- Dynamic & Auto
- Press "Add"
- Session Settings
To store these session settings, go back to the session tab, and save the settings under a session name. To activate a stored session, double-click on the session name:
Once you're connected to the bastion server you can use the locally available ssh to connect to a HPC:
[netid@bastion]$ ssh <netid>@hpcXX.tudelft.net netid@hpcXX.tudelft.net's password: Welcome [netid@hpcXX]$
File Transfer
The best method for transfering files depends on where you want to store your files:
- Files in your home directory on HPC are only available within HPC
- Files on Network Shares are available on other locations (such as a TU Delft workplace, weblogin.tudelft.nl or other HPC clusters)
Copying files to these shares is best done using the manuals on webdata.tudelft.nl
When you want to copy files to the HPC you can copy them from Network Shares
Authenticate
It is possible to access the group and bulk shares of your research group. It is required that you have logged in using your password. If you logged in with an ssh public/private keypair instead of your password, you need to authenticate first with:
kinit
This will ask you to type your password. This authentication is valid for about eight hours, after that you have to authenticate again.
Basic access
Now just type (depending on which share you want to use):
cd /tudelft/$USER/staff-group/ cd /tudelft/$USER/student-group/ cd /tudelft/$USER/staff-bulk/ cd /tudelft/$USER/staff-umbrella/
and navigate from there to the directories that you need.
You can access your Windows home directory as well. The subdirectories of the home directories are followed by the first letter of your surname and then your netid.
For example, if your name would be John Smith and your netid jsmith;
cd /tudelft/$USER/staff-homes/s/jsmith cd /tudelft/$USER/student-homes/s/jsmith
Important note
The $USER
part in the commands above is a shell variable that contains your netid. You can also substitute $USER
for your netid yourself. If your netid would be jsmith
, the command
cd /tudelft/jsmith/staff-homes/s/jsmith
would work just as well. Please do not substitute $USER
with anything else than your own netid!
If you use anthing other than your own netid you'll create a recipe for potential disaster!
If you and a coworker need to access te same data on a group or bulk volume at the same time, you both use different paths.
So /tudelft/jsmith/staff-group/
only works if your netid is jsmith and /tudelft/pbrown/staff-group/
only works works if your netid is pbrown.
If both netids have the same privileges for accessing the group volumes, then these commands give access to the same data.