How-to guides
Control access
Protect a tunnel, secure your account, and manage API keys.
A public URL can be reached by anyone who knows it unless you add protection. Create a tunnel using the first-tunnel tutorial before following these steps.
Require a tunnel username and password
- Select the tunnel row in the dashboard to open Tunnel settings.
- Under Basic auth, turn on Require basic auth. Add a Username and Password, then select Add user. Add separate users as needed.
- Open the tunnel URL in a private browser window and check that it asks for credentials and accepts the intended user's credentials before sharing it. The tunnel login is separate from your Femtoport account login.
- To revoke a user's access, open the same settings and select Remove beside that user. Turning off Require basic auth leaves the tunnel open to anyone with the URL unless another protection applies.
The agent must receive the settings and be online. For a remote desktop, the dashboard warns when no Basic auth user is configured; anyone who can reach an unprotected desktop can view and control it. SSH and Telnet targets can also have their own login, but protect the tunnel itself before sharing its URL.
Protect your Femtoport sign-in
Select your account name in the top bar to open Account & activity. Under Authenticator MFA, select Set up authenticator app. Confirm the emailed code, scan the QR code or enter the setup key in your authenticator, and confirm with its six-digit code. Save the recovery codes in a private place: they are shown once. At sign-in you can choose Use a recovery code if you cannot use your authenticator. Regenerating recovery codes invalidates the previous unused codes.
Account MFA protects dashboard sign-in; it does not by itself add a login to a public tunnel. Configure tunnel access separately.
Create and revoke an API key
In Account & activity, open Access tokens. Enter a New API key label, select Create API key, and save the revealed key securely; it will not be shown again. A key is a non-expiring machine token with the workspace role of the session that created it. Use a browser session to create keys. Revoke a key in the access-token list when it is no longer needed or may have been exposed. Agent tokens shown in a tunnel's settings are separate credentials used to connect an agent.