11.2.4 Third-party SSH client (standard Windows and Windows on Windows)
This procedure applies to the following cases:
32-bit Internet Explorer on a 32-bit or 64-bit operating system
32-bit Firefox on a 32-bit or 64-bit operating system
64-bit Internet Explorer on a 64-bit operating system
-
64-bit Microsoft Edge on a 64-bit operating system
To configure a third-party SSH client for use by a Web browser, follow these steps:
Obtain and install a third-party SSH client.
This procedure gives examples for the PuTTY client installed to C:\Program Files\PuTTY\putty.exe.
Because PuTTY cannot correctly parse the ssh://node input, this example includes a script that strips the ssh:// from the input argument. The script C:\Program Files\PuTTY\ssh.js contains the following commands:
host = WScript.Arguments(0).replace(/ssh:/,"").replace(/\//g,""); shell = WScript.CreateObject("WScript.Shell"); shell.Run("\"c:\\Program Files\\PuTTY\\putty.exe\" -ssh " + host);
This script was created for this example and is not included with PuTTY.
Define the SSH protocol.
a. Back up the Windows registry.
b. Use the Windows registry editor to add the [HKEY_CLASSES_ROOT\ssh] key with the following values:
Name
Type
Data
(default)
REG_SZ
URL:SSH protocol
EditFlags
REG_DWORD
2
FriendlyTypeName
REG_SZ
SSH
URL protocol
REG_SZ
No value
Set file association for the URL:SSH protocol file type.
a. Back up the Windows registry.
b. Use the Windows registry editor to modify the [HKEY_CLASSES_ROOT\ssh\shell\open\command]key with the following values:
Name
Type
Data
(default)
REG_SZ
"C:\Windows\System32\WScript.exe" "C:\Program Files\PuTTY\ssh.js" %l
%l (with a lowercase L) is the complete ssh argument, including the protocol specification. The ssh.js script passes the SSH target to PuTTY.
In a .reg file, escape each quotation mark (") and backslash (\) character with a backslash (\) character.
Restart the Web browser, and then, in the browser address bar, enter the ssh command:
ssh://node
node is the IP address or fully-qualified domain name of a node that runs the telnet server.
If you are prompted with a security warning, permit the action.
In Firefox, select the Remember my choice for ssh links check box.