Open SSH from the browser
Learn how to open SSH connections directly from the browser
SSH Link handler for Windows
RPort and your browser will open links to ssh://user@remote.example.com
with the default application for that URL scheme. Windows does not have any default application assigned. To do so, follow the guide below.
Step 1: Install OpenSSH
Make sure you have OpenSSH installed on Windows 10. Open a terminal (cmd.exe or PowerShell) and type in shh -V
. You should get an output similar to
If the ssh command is missing, execute the following command on a PowerShell.
More info here
Step 2: Download the wrapper script
An ssh link follows this syntax, ssh://<username>@<host>:<port>
but open ssh expects a different format. Download the PowerShell script ssh-protocol-handler.ps1
to some directory, for example to %LOCALAPPDATA%\ssh-protocol-handler.ps1
.
You can do this on the PowerShell with the following commands.
Test the script by executing .\ssh-protocol-handler.ps1 ssh://user@127.0.0.1:22
. It doesn't matter if you have a local SSH server. It's just for testing the URI gets translated into the correct PowerShell command.
Step 3: Register the script as URL handler
Download the ssh-protocol-handler.reg
registry setting file. Adding it to the registry will register the above script as a protocol handler for ssh://
links.
You can do this in the PowerShell with the following commands.
If you download the script manually, replace <LOCALAPPDATA>
by the path where you stored ssh-protocol-handler.ps1
Step4: Activate the new handler
Open the windows settings. Go to "Apps & feature -> Default Apps", scroll down and click on "Choose default apps by protocol".

Now type in an SSH Url into the URL bar of any browser, for example ssh://user@example.com:2222
. A PowerShell windows should open trying to connect you.
Last updated
Was this helpful?