Connect to the server
This page shows how to open a workspace in the browser with the web IDE and JupyterLab, and how to get into the same workspace over SSH from VS Code or a terminal on your PC.
Ways in
Section titled “Ways in”| Way | From | You need |
|---|---|---|
| Web IDE (VS Code) | Browser | A qgon sign-in and the workspace password |
| JupyterLab | Browser | The workspace password |
| SSH (VS Code Remote-SSH, terminal) | PC | A registered SSH public key |
All three lead to the same workspace, the same account and the same home folder. A file you create in the web IDE is there when you come in over SSH.
Set up access
Section titled “Set up access”Do this once, the first time you enter a workspace.
- Open the workspace in Manage › Workspaces. If it is stopped, a workspace manager has to start it.
- Press Set up access on the Access tab. The connection details appear after a few seconds.
Setting up access creates two things. One is your Linux account inside the workspace. You can use sudo, and your home folder is /qgon/home/<username>. The other is your workspace key. The SDK and the qgon command inside that workspace use this key to talk to the server, so you never add a key yourself.
A workspace key works only inside its workspace. It stops working as soon as you are removed from the members. Even for an administrator account, anything done with a workspace key is judged by member rules. Do administrator work from the qgon screens or with an API key made in Settings › API credentials. Concepts has a table of all key types.
Open in the browser
Section titled “Open in the browser”
Open web IDE opens VS Code in a new tab. It opens only while you are signed in to qgon in the same browser, and the first time it asks for My password from the Access tab. Open JupyterLab uses the same password.
The password is for that workspace only and is shown only to you. To get a new one, or if you suspect a leak, press New password on the My password row. If the workspace is running, the password changes right away, so you have to sign in again to any open web IDE or JupyterLab, but your files stay as they are. If it is stopped, the change applies the next time it starts.
Right after a start finishes, a page saying the workspace is not connected yet may show briefly. This page is shown in Korean only. The screen retries on its own, so wait a moment. If it keeps showing, check that the workspace is running.
Get in over SSH from your PC
Section titled “Get in over SSH from your PC”SSH does not accept password sign-in, so register a public key first.
Register a public key
Section titled “Register a public key”- If your PC has no SSH key, create one.
ssh-keygen -t ed25519
- Copy the contents of
~/.ssh/id_ed25519.pub. Only the public key ending in.pubgoes in. The private key never leaves your PC. - In Settings › SSH keys, press Add key and paste it. Give it a name that tells you which PC it belongs to.
A registered key applies right away to every workspace you are a member of. If you change PCs or a key leaks, delete that key and register a new one.
Connect from a terminal
Section titled “Connect from a terminal”The SSH row on the Access tab shows the exact command for this server. It has this form.
ssh <username>+<workspace>@<server address> -p <SSH port>The user name part is your username and the workspace name joined with +. The default SSH port is 2552, and it can differ per server.
VS Code Remote-SSH
Section titled “VS Code Remote-SSH”Copy the settings under VS Code Remote-SSH on the Access tab into ~/.ssh/config on your PC.
Host qgon-<workspace> HostName <server address> Port <SSH port> User <username>+<workspace>Install the Remote-SSH extension in VS Code, choose Remote-SSH: Connect to Host… from the command palette and pick qgon-<workspace>. From a terminal, ssh qgon-<workspace> takes you to the same place.
A shell you open over SSH has the same account and home folder as the web IDE terminal. The qgon command and the SDK settings are already in place too, so you can send training with qgon run --queue gpu from there.
Working from your PC
Section titled “Working from your PC”The qgon SDK comes inside workspaces and the training job environment. From your PC there are two ways in. Use SSH to enter a workspace and write and run code there, or call the server through the REST API. Create the key for the REST API in Settings › API credentials.
When something goes wrong
Section titled “When something goes wrong”The web IDE does not open. Check that you are signed in to qgon in the same browser. The web IDE opens on a port assigned to each workspace, so if the qgon screens open but the web IDE does not, your organization's firewall may be blocking that port. Ask your administrator whether it is open.
SSH rejects your key. Check that the registered public key matches the private key your PC uses, and that the user name has the form <username>+<workspace>. Also check that you set up access in that workspace.
SSH does not connect at all. Ask your administrator whether the SSH port is open in your organization's firewall.