m0zart89 / chromeputty

Running putty in one click in Chrome (Windows OS).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chromeputty

Running putty in one click in Chrome (Windows OS).

  1. Download an extension and put into directory C:\chrome_extensions\chromeputty
  2. Download or put your existing putty.exe into directory C:\chrome_extensions\chromeputty
  3. Register and handle ssh protocol by running bat.reg:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ssh]
@="URL:ssh Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\ssh\shell]

[HKEY_CLASSES_ROOT\ssh\shell\open]

[HKEY_CLASSES_ROOT\ssh\shell\open\command]
@="\"C:\\chrome_extensions\\chromeputty\\putty_util.bat\" %1"

  1. Open your chrome web browser extensions page chrome://extensions/: turn on developer mode (toggle), load extension and turn it on
  2. Open any page with ip-address 1.2.3.4 on it and hit Ctrl + Alt
  3. Then ip-address will be replaced with highlighted pink link: <a style="background-color: #e2b0b0;" class="webputty" href="ssh://1.2.3.4" target="_blank">1.2.3.4</a>
  4. Click the link
  5. Link runs C:\chrome_extensions\chromeputty\putty_util.bat:
@echo off
set var=%1
set extract=%var:~6,-1%
start /B C:\\chrome_extensions\\chromeputty\\putty.exe %extract%
  1. C:\chrome_extensions\chromeputty\putty_util.bat runs C:\chrome_extensions\chromeputty\putty.exe with forwarded ip-address
  2. Return to your page and hit once again Ctrl+Alt then link will be replaced with text ip-address

Also you can:

  1. Customize Hotkeys in script.js
  2. Customize permitted scheme (details https://developer.chrome.com/extensions/match_patterns):
		"matches": ["*://*.mysite.net/*"],

About

Running putty in one click in Chrome (Windows OS).


Languages

Language:JavaScript 88.7%Language:Batchfile 11.3%