@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 moveputty.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
- Click Start, type regedit.exe in the search box, and then press Enter
- In Registry Editor, click File > Export
- 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 ofputty.exe
isC:/Program Files/putty
Register SSH Protocol
- Go to the location of
putty.exe
, in this exampleC:/Program Files/putty
- Open
Notepad.exe
and then paste the following text into the new documentREGEDIT4 [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\""
- Save the file in
C:/Program Files/putty
and name itssh.reg
NOTE: make sure to change 'Save as' type to (* . *)- 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%
- Save the to same location as
ssh.reg
and name itputty_util.bat
CAUTION: Back-up your computer or registry prior to continuing- 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.
- 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