Quantcast
Channel: Knowledge Base
Viewing all articles
Browse latest Browse all 95

SSH Handler for Windows

$
0
0

@alejo wrote:

INTORDUCITON

In upcoming releases of VIRL, the user will be able to launch an external terminal directly from UWM. This will allow the user to interact with the simulation nodes without having to open VM Maestro. The user will be able to connect to ssh and telnet sessions by clicking on a link in UWM for the desired node.

SSH Session Handler Configuration on Windows

Follow this step-by-step tutorial to configure PuTTY as your native SSH Session handler on Windows.
Note - this example is designed for PuTTY but can be adapted for other applications.

The of this tutorial is highly dependent on the location of the PuTTY executable (which is referenced both in the registry file as well as in the putty_util.bat file) ensure to check the exact location (directory path) of putty.exe. Most current browsers will place downloads in your "Download(s)" folder or directory. If you do not move putty.exe from that location, the session handler will not work.

Also note that there's a more elaborate script on Github that deals with this using Visual Basic.

CAUTION:
This requires editing your registry. It is HIGHLY recommended to make a backup of your computer or registry prior to continuing.
You can create a copy of your running registry by doing the following:

Windows 7 and later

  1. Click Start, type regedit.exe in the search box, and then press Enter
  2. In Registry Editor, click File > Export
  3. In the Export Registry File box, select the location where you want to save the backup copy, name your back up file and click save

Download PuTTY

Download putty.exe (version beta 0.65).
This tutorial assumes the location of putty.exe is C:/Program Files/putty

Register SSH Protocol

  1. Go to the location of putty.exe, in this example C:/Program Files/putty
  2. Open Notepad.exe and then paste the following text into the new document
 REGEDIT4
 [HKEY_CLASSES_ROOT\ssh]
 @="URL:Putty SSH Protocol"
 "URL Protocol"=""
 [HKEY_CLASSES_ROOT\ssh\shell]
 [HKEY_CLASSES_ROOT\ssh\shell\open]
 [HKEY_CLASSES_ROOT\ssh\shell\open\command]
 @="\"C:\\Program Files\\putty\\putty_util.bat\" \"%1\""
 [HKEY_CLASSES_ROOT\telnet]
 @="URL:Putty Telnet Protocol"
 "URL Protocol"=""
 [HKEY_CLASSES_ROOT\telnet\shell]
 [HKEY_CLASSES_ROOT\telnet\shell\open]
 [HKEY_CLASSES_ROOT\telnet\shell\open\command]
 @="\"C:\\Program Files\\putty\\putty_util.bat\" \"%1\""
  1. Save the file in C:/Program Files/putty and name it ssh.reg
    NOTE: make sure to change 'Save as' type to (* . *)
  2. With Notepad still open, create new document and paste the following text.
 @echo off
 set var=%1
 set extract=%var:~7,-2%
 "C:\Program Files\putty\putty.exe" %extract%
  1. Save the to same location as ssh.reg and name it putty_util.bat
    CAUTION: Back-up your computer or registry prior to continuing
  2. Right click on newly created file ssh.reg and click on Merge. Answer the prompt to allow the change and wait for confirmation dialog to appear. Once completed click OK to close confirmation dialog window.
  3. Click on this link (ssh://127.0.0.1) and PuTTY should try to connect to localhost.

Note: A reboot is recommended in order to completely apply the changes.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95

Trending Articles