Connecting to Instances
How to connect to your GPU instances via SSH, VSCode, and Jupyter
Connection Methods
SynpixCloud instances support multiple connection methods:
- SSH - Command-line access via terminal
- VSCode Remote - Full IDE experience
- Jupyter Notebook - Browser-based Python environment
SSH Connection
Basic SSH Connection
- Get your connection details from the instance dashboard
- Open your terminal and run:
ssh -p <port> root@<host>- Enter the root password when prompted
SSH on Different Systems
macOS / Linux
Use the built-in Terminal app:
ssh -p 12345 root@gpu.synpixcloud.comWindows
Use PowerShell, Windows Terminal, or install an SSH client:
ssh -p 12345 root@gpu.synpixcloud.comOr use PuTTY for a graphical SSH client.
SSH Key Authentication
For passwordless login, add your public key:
# On your local machine
cat ~/.ssh/id_rsa.pub
# On the remote instance
mkdir -p ~/.ssh
echo "your-public-key" >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keysKeeping SSH Sessions Alive
To prevent disconnection during long operations, configure SSH keep-alive:
# Add to ~/.ssh/config on your local machine
Host *
ServerAliveInterval 60
ServerAliveCountMax 3Running Background Processes
Use screen or tmux to keep processes running after disconnection:
Using Screen
# Start a new screen session
screen -S training
# Run your command
python train.py
# Detach: Press Ctrl+A, then D
# Reattach later
screen -r trainingUsing tmux
# Start a new tmux session
tmux new -s training
# Run your command
python train.py
# Detach: Press Ctrl+B, then D
# Reattach later
tmux attach -t trainingVSCode Remote Connection
Connect to your instance directly from Visual Studio Code for a full IDE experience.
Setup
- Install VSCode
- Install the Remote - SSH extension
Connect
- Press
Ctrl+Shift+P(orCmd+Shift+Pon macOS) - Type Remote-SSH: Connect to Host
- Enter:
root@<host> -p <port> - Enter password when prompted
SSH Config for Easy Access
Add to your ~/.ssh/config:
Host synpix-gpu
HostName gpu.synpixcloud.com
Port 12345
User rootNow connect with just:
ssh synpix-gpuOr select "synpix-gpu" in VSCode's Remote-SSH hosts.
Troubleshooting VSCode Connection
If VSCode fails to connect:
- Check SSH access - Verify you can connect via terminal first
- Update Remote-SSH - Ensure the extension is up to date
- Check server requirements - Instance needs sufficient memory for VSCode Server
- Clear server cache - Run "Remote-SSH: Kill VS Code Server on Host"
Jupyter Notebook
Access Jupyter Notebook through your browser for interactive Python development.
Accessing Jupyter
If your instance has Jupyter pre-installed:
- Find the Jupyter URL in your connection details
- Open the URL in your browser
- Enter the token/password if prompted
Manual Jupyter Setup
If Jupyter is not pre-installed:
# Install Jupyter
pip install jupyterlab
# Start Jupyter with remote access
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-rootMake sure port 8888 is mapped to an external port in your instance settings.
Jupyter Security
When running Jupyter on a remote server:
# Set a password
jupyter lab password
# Generate config
jupyter lab --generate-config
# Edit config to require password
# Set c.ServerApp.password in jupyter_lab_config.pyPort Mapping
Map internal ports to external access for web services, APIs, or custom applications.
Common Port Mappings
| Service | Internal Port | Use Case |
|---|---|---|
| Jupyter | 8888 | Notebooks |
| TensorBoard | 6006 | Training visualization |
| Gradio | 7860 | ML demos |
| API Server | 8000 | REST APIs |
Configuring Port Mapping
- Go to instance settings
- Navigate to Port Mapping
- Add your internal port
- Note the assigned external port
Access your service at: http://<host>:<external-port>
Connection Troubleshooting
Cannot Connect via SSH
- Check instance status - Ensure it's "Running"
- Verify credentials - Double-check host, port, and password
- Check network - Ensure your network allows outbound SSH
- Wait for startup - New instances may take 1-2 minutes
Connection Drops Frequently
- Configure SSH keep-alive (see above)
- Use
screenortmuxfor important processes - Check your local network stability
Slow Connection
- Check your local network bandwidth
- Consider using a VPN if you're far from the server region
- For large file transfers, use
rsyncwith compression:
rsync -avz --progress local_file root@host:remote_path -e "ssh -p <port>"Support
Connection issues? Contact us at support@synpixcloud.com