Resources Access Guide

Overview

This guide explains how to request access, configure SSH authentication, and connect to the SCI-uc Advanced Computing Resources.


Request Access

To access the SCI-uc clusters and its computing and storage resources, you must first request an account by following the instructions provided in the official documentation:

Request Access

This guide explains the required information and steps to submit your access request.


SSH Key Requirement

Access to SCI-uc managed clusters is strictly provided via frontend nodes (ui.sci.unican.es) through secure SSH connections using public-key authentication.

Generate a New SSH Key

On your local machine, run:

ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519-ui

When prompted:

  • Enter a secure passphrase
  • Press Enter to accept the default file location

This will generate:

  • Private key: ~/.ssh/id_ed25519-ui
  • Public key: ~/.ssh/id_ed25519-ui.pub

Send Your Public Key

Display your public key:

cat ~/.ssh/id_ed25519-ui.pub

Copy the full output and send it to:

soporte.sci@unican.es

Include:

  • Your username (if known)
  • A short request to install your SSH key
  • The full contents of your public key

Connect to the Clusters

Once your request is approved, you will receive your username.

To connect:

ssh -i ~/.ssh/id_ed25519-ui <username>@ui.sci.unican.es

You will be prompted for your SSH key passphrase (if your private key is protected with one).

First Login: Set Your Password

Users initially access the frontend node (ui.sci.unican.es) using their configured SSH public key.

After your first successful login, you must set your personal account password:

passwd

You will be prompted for:

  • Your current temporary password (provided during account activation, if applicable)
  • Your new password
  • Confirmation of the new password

Example:

$ passwd
Changing password for user <username>.
Current Password:
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

This password is used for authentication on internal cluster resources where password-based access is required (for example, when connecting between frontend and compute nodes if applicable).


Access from Windows - PuTTY (Optional)

Basic Configuration

Use the following connection details:

  • Hostname: ui.sci.unican.es
  • IP: 193.144.184.31

Steps:

  1. Enter the hostname or IP
  2. (Optional) Save the session
  3. Click "Open"

putty1


Set Default Username (Optional)

To avoid entering the username each time:

Connection → Data → Auto-login username

Save the session after configuring it.


Once Logged In

After connecting to the UI node, you can:

  • Submit jobs using Slurm (srun, sbatch, salloc)
  • Access shared storage ($HOME, Lustre)
  • Transfer files using scp or rsync

The UI node is intended for lightweight tasks. Review the UI node usage and limits before running scheduled or interactive processes.


Access a Working Node from VS Code

The UI node (ui.sci.unican.es) is the SSH entry point to SCI-uc. Working nodes are not normally exposed directly to the Internet. VS Code can connect to an allocated working node through the UI node by using SSH jump-host configuration.

Do not reserve an interactive session on the UI node for a job. Reserve the working node first with Slurm, keep the allocation active, and then connect to that node from VS Code.

Reserve a Working Node

Connect to the UI node and start an interactive allocation:

ssh -i ~/.ssh/id_ed25519-ui <username>@ui.sci.unican.es

salloc --partition=<partition> --nodes=1 --exclusive

Once the allocation starts, obtain the node name:

hostname

For example, the result may be wn061. Record this name and keep the allocation active while using it from VS Code.

Alternative Slurm commands can start an interactive shell on a working node:

srun --partition=<partition> --nodes=1 --pty bash

hostname

Use the partition and resource options permitted for your account. The working-node name must be visible from the UI node and is only valid while the allocation is active.

Configure SSH in VS Code

Install the Remote - SSH extension in VS Code. Open the SSH configuration file with:

Ctrl+Shift+P → Remote-SSH: Open SSH Configuration File...

Add the following entries, replacing <username>, /path/to/private/key and wn061 with your values:

Host sci-ui
    HostName ui.sci.unican.es
    User <username>
    IdentityFile /path/to/private/key
    IdentitiesOnly yes

Host sci-wn061
    HostName wn061
    User <username>
    IdentityFile /path/to/private/key
    IdentitiesOnly yes
    ProxyJump sci-ui

The Host name is a local alias used by VS Code. The HostName must contain the actual working-node name, which may differ from wn061.

On Linux and macOS, for example, the private key is usually located at ~/.ssh/id_ed25519-ui:

IdentityFile ~/.ssh/id_ed25519-ui

On Windows, use a Windows path accepted by OpenSSH, for example:

IdentityFile C:/Users/<local-user>/.ssh/id_ed25519-ui

Connect to the Working Node

In VS Code:

  1. Open Remote Explorer.
  2. Select SSH.
  3. Choose sci-wn061.
  4. Select Connect in Current Window or Connect in New Window.

VS Code will first authenticate to ui.sci.unican.es and then use the SSH proxy jump to connect to the allocated working node.

To test the SSH configuration outside VS Code:

ssh sci-wn061

The remote session should return the expected working-node name:

hostname

Create SSH Tunnels

VS Code can forward TCP ports between the local workstation and the working node. This is useful for Jupyter, web applications, databases or other services started inside an allocated node.

For example, to expose a remote port 8888 on local port 8888, add:

Host sci-wn061
    HostName wn061
    User <username>
    IdentityFile /path/to/private/key
    IdentitiesOnly yes
    ProxyJump sci-ui
    LocalForward 8888 127.0.0.1:8888

On the working node, start the service bound to 127.0.0.1:

jupyter lab --ip=127.0.0.1 --port=8888

Open http://127.0.0.1:8888 in the local browser. If the service defines a token or password, use the URL or credentials printed in the working-node terminal.

Ports can also be forwarded after connecting through the VS Code Ports view:

  1. Open the Ports panel in VS Code.
  2. Select Forward a Port.
  3. Enter the working-node port, for example 8888.
  4. Open the generated local address in the browser.

Use a different local port if another service already uses 8888, for example 8889:127.0.0.1:8888.

Troubleshooting

If the connection fails:

  • Verify that ui.sci.unican.es is reachable from the local workstation.
  • Verify that the private key is readable locally and that the public key is installed on SCI-uc resources.
  • Verify that the Slurm allocation is still active.
  • Verify that the working-node name returned by hostname matches HostName in the SSH configuration.
  • Use scontrol show job or squeue --me to check the allocation and its working nodes.
  • Use verbose SSH output to identify the failing hop:
ssh -vvv sci-wn061

If an interactive node is no longer reachable, reconnect to the UI node and create a new Slurm allocation before updating the sci-wn061 entry.