I would like to request Windows parity for local custom terminal commands in Royal TS.
Royal TSX supports rJSON TerminalConnection objects using TerminalConnectionType: "CustomTerminal", CustomCommand, and RunInsideLoginShell. This allows interactive local commands to run inside an embedded Royal TSX terminal tab.
The official AWS EC2 SSM Dynamic Folder uses this pattern and explicitly documents that it currently works only with Royal TSX for macOS:
My primary use case is Azure AD-based SSH:
az ssh vm -g <resource_group_name> -n <vm_name> --subscription <sub_id>
I want a Dynamic Folder to generate an embedded terminal tab that runs this local interactive command.
On Royal TS 7.4.50622 with Windows 11, the generated connection is created successfully, but opening it attempts a conventional SSH connection to ComputerName and reports:
Could not connect to SSH endpoint. Unable to resolve hostname.
The configured CustomCommand is not executed.
Similar limitations have previously been discussed in the Royal Apps community regarding embedded local terminals and connecting the Rebex terminal to a local shell.
I included links to those discussions, along with the complete rJSON example and reproduction details, in this GitHub issue:
Could Royal TS for Windows support interactive local CustomTerminal commands inside embedded tabs, including connections generated through Dynamic Folders?
If this combination cannot be supported, an explicit unsupported-feature message would also be preferable to attempting a normal SSH connection.
Royal TS v26 for Windows (currently available as beta), is able to run local processes (such as cmd or pwsh) in an interactive terminal (PTY).
There are currently no docs for the properties yet but the easiest way to get this done in rJson is to simply configure one custom terminal in a test doc and look at the XML. This way you can find out the property names and values you need in rJson.
Quick follow-up now that Royal TS v26 has shipped Custom Terminal PTY support on Windows.
I put together a Dynamic Folder sample that uses this on Windows for exactly the Azure AD SSH scenario in the original post, and opened a PR against the official toolbox repo:
The sample generates RDP, password-based SSH, and Azure AD-based AzSSH connections for a single Azure VM per Dynamic Folder. AzSSH runs az ssh vm with a forced TTY and Bash login shell inside an embedded Custom Terminal tab, so Azure CLI handles the Azure AD authentication. Verified on Windows 11 with Royal TS v26.
@stefan_koell - would you mind taking a look when you have a moment?
Thanks again for adding the Windows PTY support - it was the missing piece for this workflow