handing ssh:// protocol links

4,029 views
Skip to first unread message

Michael perigard

unread,
Jun 8, 2012, 11:54:05 AM6/8/12
to chromiu...@chromium.org
Would it be possible to craft a chrome command line that could be used to handle ssh:// protocol links in Windows? There are many of these links I use every day that currently open putty, which is a wonderful client, but more than I need in most cases.

michael....@megapath.com

unread,
Jun 8, 2012, 12:05:32 PM6/8/12
to chromiu...@chromium.org
I would even settle for something that redirected ssh:// links within chromium. Poking around, I can't seem to find any way to use the command line to open a chromium tab already loaded with a particular extension *and* feed that extension arguments (host, username, port etc).

Robert Ginda

unread,
Jun 8, 2012, 1:41:31 PM6/8/12
to michael....@megapath.com, chromiu...@chromium.org
If you open Secure Shell in a tab, connect to a host, and then click the star in the URL bar, you'll create a bookmark to the connection.  You may be able to pass that bookmarked URL to the chrome command line to cause it to launch a Secure Shell session to the selected host.

I haven't tried this yet.  Please let us know what you find out :)

There is also some protocol handler API going on, which I also haven't looked into in detail yet.  It may be possible (now or in the future) for Secure Shell to register to handle ssh: urls.


Rob.

michael....@megapath.com

unread,
Jun 8, 2012, 1:55:22 PM6/8/12
to chromiu...@chromium.org
I was pointed to the following URL (thanks Abhay Rana):

chrome-extension://pnhechapfaindjhompbnflcldabbghjo/html/nassh.html#user@host:22

which will open a tab with the extension and connect to that host. You can create shortcuts with this link as well if you feed the entire thing as a URL to chrome:

chrome chrome-extension://pnhechapfaindjhompbnflcldabbghjo/html/nassh.html#user@host:22 

Using user-level registry tweaks (so you don't need admin access) you can create protocol handlers, including ssh:// - I have one now that opens a tweaked copy of puTTY that will take ssh:// and telnet:// URLs (URI?). I'm working on crafting the command line to let ssh:// links opened in any app (including chrome) should open a new tab with that connection. I'll post the registry tweak if I get it to work.

sriniva...@gmail.com

unread,
Aug 17, 2012, 4:15:07 PM8/17/12
to chromiu...@chromium.org, michael....@megapath.com
Did you tried FIRESSH on Mozilla.  That was running like charm for me. 

Jeff Bailey

unread,
Aug 21, 2012, 6:07:11 PM8/21/12
to chromiu...@chromium.org, michael....@megapath.com
In order to make this work, ssh needs to be whitelisted in then Webkit code[0].  Before that, it should probably be proposed to the WHATWG to extend their list[1]

I have a bottom-of-the-pile TODO to put sync proposal a patch to sync the webkit code with the WHATWG spec, because I want a web-based IRC for my CrOS.  I'll do these at the same time.  The proposal to WHATWG is here: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18648


On Friday, June 8, 2012 8:54:05 AM UTC-7, Michael perigard wrote:
Reply all
Reply to author
Forward
0 new messages