Re: [chromium-hterm] Google Chrome not launching Mac terminal for handling SSH protocol Inbox x Arnob Dey

65 views
Skip to first unread message

Kegan Thorrez

unread,
Jun 8, 2020, 1:11:27 PM6/8/20
to Arnob Dey, chromium-hterm
Try
chrome://settings > Privacy and security > Site Settings > Additional permissions > Handlers
(Or just chrome://settings/handlers )
and delete any relevant handlers you see there.

Maybe also look at
chrome://settings > Search engine > Manage search engines
and delete any relevant search engine you see there (in the Search engines added by extensions section).

Also you can open up Secure Shell App > Options > URI Handlers
And check out what that page has.

On Sun, Jun 7, 2020 at 1:35 PM Arnob Dey <arnob...@gmail.com> wrote:
Mac OS: 10.14.6 Mojave  
Google Chrome Version: 83.0

Hi,

I had installed Secure Shell App in Google Chrome. Before that clicking on SSH links(ssh://<user>@<IP>) would auto-launch the terminal. After installing Secure Shell App the SSH links were being opened by the Secure Shell app in a new tab. 

Due to some reasons I needed to go back to auto-launching the terminal for all SSH links. So I removed Secure Shell from Chrome.

After this when I clicked on SSH links it would redirect to something like below:

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

Tried removing Chrome from Applications. Cleared out the ~/Library/Application\ Support/Google/Chrome/. Then did a clean reinstall but still no luck.

Would really appreciate any help to resolve this. 

Thanks in advance!

Arnob

--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/CAEWpT-RWkAoQ2VsP-VmoY0UV37gBVow6JwQG8HJhe9TC-1MmEw%40mail.gmail.com.

Kegan Thorrez

unread,
Jun 8, 2020, 2:29:54 PM6/8/20
to Arnob Dey, chromium-hterm

Arnob Dey

unread,
Jun 8, 2020, 9:01:15 PM6/8/20
to Kegan Thorrez, chromium-hterm
Hi Kegan,

The issue is what worked before now doesn't. When I used to click on a SSH link (<a href="ssh://user@<IP>">SSH</a>) it would auto launch my Mac terminal with the corresponding SSH session but now it's behaving like a dead link -- it doesn't launch anything at all -- even when I copy paste the link to another tab.

Actually there's no handler set under chrome://settings/handlers for anything. (And I have no idea if there was something before I installed and removed Secure Shell)

Screenshot 2020-06-09 at 4.45.11 AM.png

Search Engines: (Not sure if any of these search engines are installed by any third party extension/app -- don't think so)

Screenshot 2020-06-09 at 4.46.28 AM.png

All I need to know if there's a way to register the terminal as the default ssh-protocol-handler under chrome://settings/handlers.

Thanks,
Arnob

Arnob Dey

unread,
Jun 8, 2020, 9:28:17 PM6/8/20
to Kegan Thorrez, chromium-hterm
Okay, I just set iTerm2 as default SSH App and now those SSH links are launching in iTerm2 irrespective of handlers set in Chrome.

I wish I could do that for standard terminal as well which I believe was set before by default.

Kegan Thorrez

unread,
Jun 9, 2020, 2:17:00 PM6/9/20
to Arnob Dey, chromium-hterm
Ok, yeah I was able to reproduce the problem. This is apparently due to a MacOS setting, not a Chrome setting. MacOS has a setting regarding scheme handlers, but has no easy way to modify that setting.
I was able to change the setting to use Terminal.app using
as described in

Arnob Dey

unread,
Jun 10, 2020, 1:32:18 PM6/10/20
to Kegan Thorrez, chromium-hterm
Awesome Thanks! Although I did find the thread https://superuser.com/a/548122 earlier but since I was in a rush so didn't notice about SwiftDefaultApps instead I hovered over RCDefault and moved. But thanks for bringing it to my attention. 

And yes although we can compile the swift project from https://github.com/Lord-Kamina/SwiftDefaultApps using Xcode but an easy alternative is to install a precompiled version using homebrew brew cask install swiftdefaultappsprefpane 

After installing navigate to /Users/<username>/Library/PreferencePanes/SwiftDefaultApps.prefPane using Finder. Double click on the file to launch. If it doesn’t launch then go to System Preferences in Mac OS--> Security and Privacy to allow it.

Kegan Thorrez

unread,
Jun 10, 2020, 1:38:42 PM6/10/20
to Arnob Dey, chromium-hterm
Another way to install it is to download the released version from github: https://github.com/Lord-Kamina/SwiftDefaultApps/releases ( SwiftDefaultApps-v2.0.1.zip )

Arnob Dey

unread,
Jun 10, 2020, 2:25:43 PM6/10/20
to Kegan Thorrez, chromium-hterm
Awesome, thanks! 
Reply all
Reply to author
Forward
0 new messages