All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.
JavaScript androidapple-ecosystemconnectelectronfile-sharingintel-unison-alternativeiosios-windowskde-connect-alternativekvmlinuxmacbookmacosmouse-sharingphone-link-alternativeproductivityscreen-sharingsidecar-alternativesynergy-alternativewindows
# TwinDesk - Copyright (C) 2026 inukaasith. GPL-3.0, see LICENSE.
# sshd.js, elevated: in administrators_authorized_keys (Path), the lines ending with Marker taken
# out and, with KeyFile, its line added; only Administrators and SYSTEM may then read the file.
# With -All: every TwinDesk line taken out (" macshare:<id>" at the end), whichever computer added it.
param(
[Parameter(Mandatory = $true)][string]$Path,
[string]$Marker = '',
[string]$KeyFile = '',
[switch]$All
)
$keep = @()
if (Test-Path $Path) { $keep = @(Get-Content $Path | Where-Object { if ($All) { $_ -notmatch ' macshare:[A-Za-z0-9._-]*$' } else { -not $_.EndsWith($Marker) } }) }
elseif (-not $KeyFile) { exit 0 }
if ($KeyFile) { $keep += (Get-Content -Raw $KeyFile).Trim() }
Set-Content -Path $Path -Value $keep -Encoding ascii
if ($KeyFile) { icacls $Path /inheritance:r /grant 'Administrators:F' /grant 'SYSTEM:F' | Out-Null }