- Open PowerShell
- Enter
ssh-keygen -t ed25519
- Press enter once
- If you are asked
Overwrite (y/n)
, entern
- Otherwise, just press enter at every prompt
- Enter
$u = "alice"
, replacingalice
with your own GPU Server username - Enter
ssh $u@gpu-server.dhlab.intra.uni-freiburg.de "mkdir ~/.ssh"
- Enter
type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh $u@gpu-server.dhlab.intra.uni-freiburg.de "mkdir -p ~/.ssh; cat >> ~/.ssh/authorized_keys"
- If you are asked whether you are sure you want to continue, enter
yes
- Enter your GPU Sever password
- If you are asked whether you are sure you want to continue, enter
- Optional: Enter
ssh $u@gpu-server.dhlab.intra.uni-freiburg.de "hostname"
to test whether everything worked- You should directly get
gpu-dhlab
without being asked for a password
- You should directly get
- Open a terminal
- Enter
ssh-keygen -t ed25519
- Press enter once
- If you are asked
Overwrite (y/n)
, entern
- Otherwise, just press enter at every prompt
- Enter
u="alice"
, replacingalice
with your own GPU Server username - Enter
ssh-copy-id $u@gpu-server.dhlab.intra.uni-freiburg.de
- If you are asked whether you are sure you want to continue, enter
yes
- Enter your GPU Sever password
- If you are asked whether you are sure you want to continue, enter
- Optional: Enter
ssh $u@gpu-server.dhlab.intra.uni-freiburg.de "hostname"
to test whether everything worked- You should directly get
gpu-dhlab
without being asked for a password
- You should directly get
- Install and open VSCode
- Click the
≶
Icon in the bottom left corner - Select
SSH
orConnect to Host...
- Select
Add new SSH Host...
- Enter
alice@gpu-server.dhlab.intra.uni-freiburg.de
, again replacingalice
with your own GPU Server username - Select the highlighted option
- Open VSCode
- Click the
≶
Icon in the bottom left corner - Select
Connect to Host...
- Select
gpu-server.dhlab.intra.uni-freiburg.de
- If you are asked to selected the plaform of the remote host, select
Linux
- Create a new file ending in
.ipynb
- Open the file
- In the top right click
Select Kernel...
- Select
Python Environments...
- Select
Create Python Environment
- Choose
Venv
orConda
, whichever you prefer - Choose
/bin/python3
If you need a specific Python version, use uv
to manage your virtual environment.