Docs / Remote desktop (VNC)

Remote desktop (VNC)

Open your computer's screen from the panel, no VNC Viewer app needed. It suits a Mac mini or any machine with a public IP in a data center. VNC traffic goes through encrypted SSH, so the VNC port never has to be open to the internet.

How it works

Saka creates an SSH key pair for that computer. You paste the public key once. When you open the screen, the Saka server connects to the computer over SSH and forwards to its local VNC (127.0.0.1). The browser shows the screen through noVNC. The private key is stored encrypted at Saka and is never shown.

Prepare the computer (once)

  1. Turn on Remote Login (SSH). On macOS: System Settings, General, Sharing, Remote Login.
  2. Turn on Screen Sharing. There are two ways to sign in. If you already use VNC Viewer with a password, enable VNC viewers may control screen with password in the info (i) button and set a VNC password. When opening the screen, leave Username empty and enter that password. The other way: enter your Mac account user name and password. Passwords are not stored at Saka.
  3. In the computer's or data center's firewall, limit the SSH port to the addresses that need it. The VNC port (5900) does not need to be open to the outside.

Register and test

  1. Open Servers, then Remote desktop (VNC). Enter a name, the public IP or domain, and the SSH user name (on macOS: the account's short name).
  2. Paste the public key shown as one line into ~/.ssh/authorized_keys of that user.
  3. Press Test connection. Saka shows the computer's host key fingerprint. Compare it with the result of the command below, then confirm. This stops you from connecting to someone else.
On the computer
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub

After confirmation the host key is pinned. If the host key ever changes (the computer was reinstalled, or someone sits in the middle), Saka refuses to connect until you delete the entry and register it again.

Copy-paste commands per operating system

In the panel, the computer's card shows macOS, Ubuntu/Linux and Windows tabs with commands that already contain your public key. Copy, paste in the computer's terminal, Enter. This is what they look like (replace PUBLIC_KEY with the key from the panel):

macOS

Terminal
mkdir -p ~/.ssh && chmod 700 ~/.ssh && echo 'PUBLIC_KEY' >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys
sudo systemsetup -setremotelogin on

Screen: turn on Screen Sharing in System Settings, or use the kickstart command shown in the panel. VNC port 5900.

Ubuntu / Linux

Terminal
mkdir -p ~/.ssh && chmod 700 ~/.ssh && echo 'PUBLIC_KEY' >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys
sudo apt-get install -y openssh-server && sudo systemctl enable --now ssh

Screen for a headless server: sudo apt-get install -y tigervnc-standalone-server openbox xterm && vncpasswd && vncserver :1 -localhost yes -SecurityTypes VncAuth, then register it with VNC port 5901. Ubuntu Desktop: turn on Settings, Sharing, Remote Desktop (VNC, port 5900).

Windows

PowerShell (Administrator)
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Set-Service -Name sshd -StartupType Automatic; Start-Service sshd
Add-Content -Force -Path "$env:ProgramData\ssh\administrators_authorized_keys" -Value 'PUBLIC_KEY'
icacls.exe "$env:ProgramData\ssh\administrators_authorized_keys" /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"

Screen: Windows has no built-in VNC. Install TightVNC (winget install -e --id TightVNC.TightVNC), set a VNC password, and limit it to connections from the computer itself. The Windows steps are not tested on every version.

Open the screen

Press Open screen, enter your Saka account password (asked again for safety), then the computer's VNC password. Leave the user name empty if you usually only type a password in VNC Viewer; fill it in to sign in with the Mac account. Buttons for Ctrl+Alt+Del, full screen and Close are available. Closing the tab ends the session.

Security

Via API and AI agents

API
POST   /api/v1/remote          {"nama": "Mac mini", "host": "203.0.113.10", "pengguna_ssh": "alfian"}
GET    /api/v1/remote
DELETE /api/v1/remote/<id>

AI agents use the MCP tools remote_tambah, remote_daftar and remote_hapus. Opening the screen is deliberately panel-only, and trusting the host key fingerprint has to be done by a person.