Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Este site está com funcionalidades limitadas enquanto realizamos manutenção para melhorar sua experiência de uso. Se nenhum artigo resolver seu problema e você quiser fazer uma pergunta, nossa comunidade de suporte pode te ajudar em @FirefoxSupport no Twitter e /r/firefox no Reddit.

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

Add SSH protocol handler to Firefox

  • 1 resposta
  • 2 têm este problema
  • 8 visualizações
  • Última resposta de user1929

more options

I'm trying to get Firefox to recognize ssh protocol handlers when typing ssh://192.168.1.2 in my address bar and open my SSH client SecureCRT.

I've added the following registry files to my Windows 7 install

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:\\Program Files\\VanDyke Software\\SecureCRT\\SecureCRT.exe\" \"%1\""

This works perfectly under Internet Explorer (see attached photo). I can't get it working with Firefox v57 64bit. I've tried adding the following to my about:config with no luck

network.protocol-handler.external.ssh BOOL true network.protocol-handler.expose.ssh BOOL true network.protocol-handler.warn-external.ssh BOOL false

Any suggestions?

I'm trying to get Firefox to recognize ssh protocol handlers when typing ssh://192.168.1.2 in my address bar and open my SSH client SecureCRT. I've added the following registry files to my Windows 7 install 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:\\Program Files\\VanDyke Software\\SecureCRT\\SecureCRT.exe\" \"%1\"" This works perfectly under Internet Explorer (see attached photo). I can't get it working with Firefox v57 64bit. I've tried adding the following to my about:config with no luck network.protocol-handler.external.ssh BOOL true network.protocol-handler.expose.ssh BOOL true network.protocol-handler.warn-external.ssh BOOL false Any suggestions?
Capturas de tela anexadas

Alterado por mikalcarbine em

Todas as respostas (1)

more options

I think it might work if you manually add the protocol to the file where Firefox stores this information:

  1. Type "about:profiles" in the address bar
  2. Find the profile listed as being "in use", and click the "show in Explorer" button in the "root directory" field
  3. Open the folder that appears, find the "handlers.json" file, and open it.

Next, you want to add an entry for the SSH protocol. At the end of the file, you should see several characters like this:

}]}}}

What you want to do is add a comma, and insert the snippet below, so that it matches this:

}]}, [snippet below] }}

Replace [snippet below] with the following:

"ssh":{"action":2,"ask":false,"handlers":[{"name":"SecureCRT","path":"C:\Path\To\Application"}]}

Replace "Path\To\Application" above with the location of the SecureCRT executable.

Once you've done that, save the file, and then restart Firefox. Type "about:preferences" in the searchbar, scroll down to the "Applications" section, and look for the "SSH" entry. Under "action", you should see "Use SecureCRT", and if you type an ssh:// url in the address bar, it should work now.

I don't have a copy of SecureCRT installed to test this with, so I'm not completely sure if this will work or not. Let me know what happens! (If if doesn't work, you can just remove the entry from handlers.json and restart Firefox again).