Connecting to a session
What it is
A compute session is a container on someone's node. There are several ways to get into it, and you choose them on the Configure page before you start it:
- Web terminal. A terminal in a browser tab, nothing to install.
- SSH. From your own terminal, VS Code or any SSH client, with your SSH key. It comes in two kinds: through the OctaSpace proxy (works with any node) and directly to the node (faster, only on some nodes).
- File manager. A web page for uploading, downloading and editing the container's files.
- HTTP ports. A public HTTPS address for a web service you run in the container: Jupyter, a web UI, an API.
- TCP/UDP ports. A public port on the node for anything that is not HTTP: a database, a game server, a custom protocol.
Everything you turned on is in the session window: open the session in Current Sessions, section Remote Access. The addresses appear once the container is running.
Which way to choose
Way | What you need | Good for |
|---|---|---|
Web terminal | A browser | A quick look, running commands, small file transfers |
Proxy SSH | An SSH key in your profile | Daily work, VS Code, scp/sftp, any node |
Direct SSH | An SSH key, a node with open ports | Heavy transfers, the lowest latency |
File manager | A browser | Uploading and downloading files with the mouse |
HTTP ports | A service listening in the container | Jupyter, web UIs, APIs, anything opened in a browser |
TCP/UDP ports | A node with open ports | Databases, game servers, anything that is not HTTP |
Setting it up on Configure
On the Configure page of a node:
- SSH access: turns on the web terminal and SSH. Some apps (Interactive Shell, Jupyter) always run with it, so it stays on.
- File manager: turns on the web file manager.
- Expose HTTP Ports: the container ports to publish as HTTPS addresses, comma-separated, up to 10. Ports 7681 and 7682 are reserved for the web terminal and the file manager.
- Expose TCP/UDP Ports: the container ports to publish on the node, comma-separated. The label shows how many the node has free.
A session can have all of them at once. After the start you can change SSH access and the file manager with Restart on the session.
Your SSH key
SSH works only with a key: there are no passwords. Add your public key once, in Profile → SSH & API → SSH Public Keys (the contents of ~/.ssh/id_ed25519.pub or ~/.ssh/id_rsa.pub). You can paste several keys, one per line.
No key yet? Make one on your computer:
ssh-keygen -t ed25519
cat ~/.ssh/id_ed25519.pubThe key is put into the container when the session starts. A key you add later works only in sessions started after that. Without a key, SSH access gives you the web terminal only.
Web terminal
Click Open Web Terminal in the session window. A terminal opens in a new browser tab, already logged in.
- It is tmux. What runs in it survives a closed tab, a reload or a dropped connection: open the terminal again and you are back where you were. Detach with Ctrl-b d, scroll with the mouse or PgUp. SSH logins open the same tmux session.
- Files go both ways right in the terminal. Type upload to send files from your computer to the current folder (a file picker opens), and download file1 file2 to save files to your computer. These are short names for trz and tsz (trzsz).
- The address has its own login in it. Anyone with the link can open the terminal, so do not share it.
- Safari on a Mac does not open it: it does not accept the login built into the address. Use Chrome or Firefox.
SSH from your terminal
The session window shows the ready command for each kind under SSH Access. Copy it and run it in your terminal.
Kind | Command | When it is there |
|---|---|---|
Proxy SSH | ssh -p <port> <user>@<proxy host> | Always, when you have an SSH key |
Direct SSH | ssh -p <port> <user>@<node IP> | Only on nodes whose owner opened service ports on the router |
- Proxy SSH goes through an OctaSpace proxy server, so it works with any node, even one behind a home router. It adds a little latency, since traffic makes an extra hop.
- Direct SSH connects straight to the node: lower latency and the best speed for large transfers. If a node has no open ports, the session window says so and offers the proxy.
- The user is the one the image runs as (its USER), or root when the image sets none. The session window shows which. You have sudo either way.
- SSH and the web terminal are the same container: the same files, the same processes, the same tmux.
What works over SSH
- Commands, a shell, ssh -L and ssh -D forwarding. Open a container port on your own computer: ssh -L 8888:localhost:8888 -p <port> <user>@<host> makes a service in the container reachable at localhost:8888, without exposing it to the internet.
- VS Code Remote-SSH, Cursor, JetBrains Gateway. Add the host to ~/.ssh/config and connect as to any server.
- scp, sftp, rsync for files (rsync needs rsync installed in the container).
- upload and download from the terminal, as in the web terminal, if your SSH client speaks trzsz: tssh, or trzsz ssh ....
Not supported: password logins, ssh -R (forwarding from the container to your computer), agent forwarding, X11, and the old scp protocol (scp -O).
A handy ~/.ssh/config entry, with the values from the session window:
Host octa
HostName <proxy host or node IP>
Port <port>
User <user>
IdentityFile ~/.ssh/id_ed25519Then ssh octa, scp model.bin octa:/data/ or Remote-SSH → octa. The port and host change with every session, so update the entry for a new one.
File manager
Click File Manager in the session window. A web file manager opens in a new tab: browse folders, upload and download files and folders, create, rename, move and delete them, edit text files, preview images.
- What it shows: the whole container when it runs as root, otherwise the home folder of the image's user. It works as that user, so it can change only what that user may change.
- No password. Anyone with the link has your files. Do not share it.
- It starts a little after the container. Until it is up, the button is not there. If it cannot start, the session keeps running without it, and the system log says why.
- Not in VM apps. A virtual machine has its own files that the container cannot see.
Moving files
From where | Upload to the session | Download from the session |
|---|---|---|
Browser | File Manager, or upload in the web terminal | File Manager, or download FILE |
Terminal on your computer | scp file octa:/path/, rsync -avP dir octa:/path/ | scp octa:/path/file ., rsync -avP octa:/path/ . |
GUI app | WinSCP, FileZilla, Cyberduck (SFTP, key login) | Same |
From the internet | wget, curl, git clone, huggingface-cli download in the container | Upload from the container to your own storage |
- Big files and many files: use rsync or scp over SSH, Direct SSH when the node has it. rsync -avP resumes an interrupted transfer.
- Models and datasets from the internet: download them in the container itself. The node's connection is usually much faster than going through your computer.
- Transfers count as session traffic, charged at the node's price per GB when it has one.
- The container's disk is gone when the session ends. Download your results first, or keep them on a persistent volume (see Persistent volumes).
HTTP ports
For a web service in the container. Every port in Expose HTTP Ports gets its own HTTPS address, listed under HTTP services in the session window, for example https://c8693272-8000.<proxy host>.
- Listen on 0.0.0.0, not 127.0.0.1, and on plain HTTP: the proxy adds HTTPS itself. For example python -m http.server 8000 --bind 0.0.0.0, or --host 0.0.0.0 for most web servers.
- The address is public. It has no login of its own: protect the service with its own password or token if it needs one. Jupyter in OctaSpace apps opens with its token already in the address.
- WebSockets work (Jupyter, Gradio, ComfyUI, web desktops). An idle connection is closed after an hour.
- Up to 10 HTTP ports a session. Ports 7681 and 7682 are taken by the web terminal and the file manager.
- Works on any node, no open ports needed: traffic goes through the OctaSpace proxy.
- Not yet up? Until the service in the container listens on the port, the address answers with an error. Give it time to start and reload.
TCP/UDP ports
For services that are not HTTP. Every port in Expose TCP/UDP Ports is published on the node's public IP under another number, both TCP and UDP. The session window lists them under Ports as public port → port in the container.
Example. You expose 5432 (PostgreSQL). The session window shows 51802 → 5432. Connect to <node IP>:51802.
- The public port is not the one you asked for. It is taken from the range the node's owner opened on their router. Inside the container, the environment variable OCTA_PORT_<port> holds it: OCTA_PORT_5432=51802.
- Only on nodes with open ports. Many nodes sit behind a home router without them. The Expose TCP/UDP Ports label shows how many ports the selected nodes have free. With none, remove the TCP/UDP ports or choose another node.
- Port 22 is not needed: SSH is published on its own (Direct SSH).
- No protection is added. The port is open to the whole internet. Set a password on your database or server.
Questions and troubleshooting
Question | Answer |
|---|---|
There is no SSH command in the session window | You had no SSH key in your profile when the session started. Add it in Profile → SSH & API and start a new session. The web terminal works without a key. |
There is Proxy SSH but no Direct SSH | The node has no open service ports. Use the proxy, or choose a node with open ports for direct access. |
Permission denied (publickey) | Your SSH client offers a different key than the one in your profile. Point it to the right one: ssh -i ~/.ssh/id_ed25519 ..., or IdentityFile in ~/.ssh/config. |
REMOTE HOST IDENTIFICATION HAS CHANGED | A new session got the same host and port as an old one. Remove the old line: ssh-keygen -R "[<host>]:<port>". |
The web terminal asks for a login and password | You are in Safari on a Mac. Open the link in Chrome or Firefox. |
My process stopped when I closed the terminal | It did not, if it ran in the web terminal or an SSH login: both are tmux. Open the terminal again. A command started with ssh host command (no shell) does stop: use tmux or nohup. |
The session failed with "failed to configure SSH access" | The image could not get SSH set up, most often because it has neither bash nor a package manager. The system log has the reason. Use another image, or start without SSH access. |
My HTTP address shows an error page | The service is not listening yet, or it listens on 127.0.0.1 instead of 0.0.0.0, or on another port. Check inside the container: curl localhost:<port>. |
Can I use a domain of my own? | Not directly. Point your domain to a TCP port of the node and run your own web server with HTTPS behind it. |
Why is my TCP port a different number? | Ports come from the node's open range. Read the public one in the session window, or OCTA_PORT_<port> in the container. |
Can I log in as root when the image has its own user? | You log in as the image's user and have sudo: sudo -i gives you a root shell. |
Does any of this work in a VM app? | The web terminal and SSH do: they log in to the virtual machine. The file manager does not. |
Are my files kept after the session ends? | No, the container's disk is removed. Download what you need first, or keep it on a persistent volume (see Persistent volumes). |