How-to guides
Access a desktop or SSH console
Open a protected browser desktop or SSH terminal through an agent.
Femtoport can serve a desktop or an SSH terminal in a browser. Both can give a visitor control over a machine, so use a strong tunnel login, grant access only to trusted people, and protect the agent token. The workspace needs credit and an active entitlement to serve traffic; its owner can check Credit and billing, activate a free trial if available, redeem a code, or buy credit.
Open a remote desktop
- Sign in to the dashboard. Under Tunnels, select Create new tunnel, expand More ways to share, and choose Remote Desktop.
- For the machine running the agent, select Local desktop (built in) under Desktop source. To use a separate desktop server, select External desktop server and enter its reachable host and port, for example
127.0.0.1:5900for a local VNC server. - Under Basic auth, enter a username and strong password for visitors. Select Create tunnel. Without protection, someone with the URL can view and control the desktop; the dashboard asks for an explicit choice before allowing an unprotected desktop.
- In Agent token, copy the token. On the desktop machine, or a machine that can reach the external server, replace
YOUR_AGENT_TOKENwith that token and run the command for your system. You can instead copy the filled-in Run in this folder command under Linux/macOS or Windows in the token dialog. The command downloads the agent into the current folder and runs it in the foreground; keep the terminal open. The token and command are secrets. Linux/macOS:
Windows PowerShell:curl -fsSL https://cdn.femtoport.com/run.sh | sh -s -- --token='YOUR_AGENT_TOKEN'$ProgressPreference = 'SilentlyContinue' $p=Join-Path (Get-Location) 'femtoport-run.ps1' Invoke-WebRequest -UseBasicParsing https://cdn.femtoport.com/run.ps1 -OutFile $p & $p -Token 'YOUR_AGENT_TOKEN' - Wait for Online, open the tunnel's HTTPS URL, and sign in with the Basic auth user. Verify that you see the intended desktop and can control it.
For a built-in desktop, run the agent in the logged-in interactive desktop session. On Windows use the foreground command, not a Windows service. On Linux the built-in desktop needs an active X11 session, DISPLAY, and the session's Xauthority credentials; Wayland and Xwayland cannot expose the complete desktop. On macOS grant the agent Screen Recording (or Screen & System Audio Recording) and Accessibility permissions in System Settings > Privacy & Security, then restart it in the logged-in session. External servers must be reachable from the agent; secure their local network and their own authentication as appropriate.
Open an SSH console
- Start an SSH server and make sure the agent machine can reach it, for example at
127.0.0.1:22if it runs on that same machine. - In Tunnels, select Create new tunnel, expand More ways to share, and choose SSH console. Enter the server in SSH host:port, choose SSH under Protocol, and configure the authentication the server accepts. To have visitors provide their own credentials in the terminal, choose Password and leave SSH username (optional) and Password blank. Otherwise, configure a username and a private key path or password as appropriate. Paths and environment variables refer to the agent host. Use a known host key; do not enable Skip host key verification (insecure) for a real host.
- Select Create tunnel. The dashboard warns that the console has no access gate; acknowledge the warning to create it. Close the Agent token dialog without starting the agent yet.
- Open the tunnel's settings, turn on Require basic auth under Basic auth, and add a username and strong password. This tunnel login is separate from the SSH server login.
- Under Agent tokens, reveal the token using the emailed verification code. On the machine that can reach the SSH server, replace
YOUR_AGENT_TOKENwith that token and run the command for your system. You can instead copy the filled-in Run in this folder command from the token dialog. The token and command are secrets; keep the terminal open. Linux/macOS:
Windows PowerShell:curl -fsSL https://cdn.femtoport.com/run.sh | sh -s -- --token='YOUR_AGENT_TOKEN'$ProgressPreference = 'SilentlyContinue' $p=Join-Path (Get-Location) 'femtoport-run.ps1' Invoke-WebRequest -UseBasicParsing https://cdn.femtoport.com/run.ps1 -OutFile $p & $p -Token 'YOUR_AGENT_TOKEN' - Wait for Online, open the public HTTPS URL, sign in to the tunnel, and complete the SSH login in the browser terminal if prompted. Confirm that you reached the intended host.
Telnet is also offered under Protocol, but traffic between the agent and the Telnet target is unencrypted. Use SSH when possible.
Recover or stop access
If the URL fails, check that the agent is running, the tunnel is Online and Tunnel enabled, and the workspace has credit and an active entitlement. Online confirms an agent connection, not that the desktop or SSH server is usable. Check the target address, host key, local permissions and server credentials from the agent machine. For a built-in desktop, check the platform requirements above and the agent's output.
Remove a Basic auth user to revoke that user's tunnel login, or switch off Tunnel enabled to pause traffic. If an agent token is exposed, revoke it under Agent tokens and issue a new one. Delete the tunnel when finished. See Create your first tunnel for the basic flow.