VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Secure Shell (https://forums.vandyke.com/forumdisplay.php?f=15)
-   -   Default URL handler works for ssh1 and ssh2 url's, not for ssh (https://forums.vandyke.com/showthread.php?t=11541)

renep 06-04-2014 09:43 AM

Default URL handler works for ssh1 and ssh2 url's, not for ssh
 
I'm managing Linux VPS's in a cloud, and the web interface of the cloud provider has a convenient button tot open an ssh session to a VPS using a link like:
ssh://user@111.222.111.222/
I would like that button to launch SecureCRT.

In the Global options of SecureCRT, category Terminal > Web Browser, I found these two buttons:
  1. SSH2: Make SecureCRT your default SSH2 application
  2. SSH1: Make SecureCRT your default SSH1 application

These buttons work fine for ssh1: and ssh2: url's.

Unfortunately, a plain ssh url without the protocol version number doesn't work. Why is there no button for ssh?

How do I manually create an association with the ssh protocol? What are the registry keys I need to create/edit?

I'm using SecureCRT 7.2.4 on Windows 7.

rtb 06-04-2014 10:43 AM

Hi René,

There is a button for SSH1 and SSH2 since those are the protocols. There is no SSH protocol.

I ran a test creating my own registry key, and it did work. Here is an export of the registry key I created:
Code:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ssh]
"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"

Does this work for you?

renep 06-04-2014 11:14 AM

Quote:

Originally Posted by rtb (Post 41645)
There is a button for SSH1 and SSH2 since those are the protocols. There is no SSH protocol.

If I'm not mistaken, the "ssh" in the URI is a scheme. The schemes are registered by IANA as per RFC 3986 and
RFC 4395. The IANA URI scheme registry currently contains 'ssh' and not 'ssh1' or 'ssh2'.

So according to these Internet standards, SecureCRT supports two unregistered URI schemes for SSH, but not the registered scheme. IMO that's a bug.

Quote:

Here is an export of the registry key I created:
Okay, that works. Thank you.

For other people who may be reading this in the archive, on my system the location of SecureCRT in the open command is:
Code:

"C:\Program Files\VanDyke Software\Clients\SecureCRT.exe" %1

rtb 06-04-2014 11:27 AM

Thanks for the feedback René.

I have created a bug report on your behalf. We will post here with any updates.

If you would like to be notified directly, please complete and submit the form at the following location:
Submit Bug Report

renep 06-05-2014 04:40 AM

Okay, thank you.

It's nice magic by the way, to click on a VPS in a web control panel and instantly get a root prompt in SecureCRT using public key authentication.

Many installation programs on Windows offer to make their software the default handler for certain URI schemes or file extensions. I'd expect the SecureCRT installer to do this for the ssh scheme, and the SecureFX installer for sftp.

rtb 06-05-2014 09:04 AM

Hi René,

I have created a feature request to add the ability to set SecureFX as the default SFTP handler as well. We will post to this thread if we add the feature in the future.

If you would like to be notified directly, please complete and submit the form at the following location:
Submit Feature Request
In the meantime, you could use the same concept used for ssh to create a URI/URL handler for sftp. I tested this and it works.

Maureen 07-28-2015 05:57 PM

The ability to set SecrureCRT as the default SSH handler has been added to a pre-beta version of SecureCRT for Windows. This allows links such as:

ssh://user@111.222.111.222/

to launch SecureCRT. If you would be interested in trying it, please send email to me at Maureen.Jett@vandyke.com.

Maureen

renep 07-29-2015 09:54 AM

Quote:

Originally Posted by Maureen (Post 44356)
The ability to set SecrureCRT as the default SSH handler has been added to a pre-beta version of SecureCRT for Windows.

Thanks, that's good news.

Quote:

If you would be interested in trying it
I'd like to try it in the public beta.

Maureen 07-29-2015 10:01 AM

Quote:

Originally Posted by renep (Post 44360)
Thanks, that's good news.



I'd like to try it in the public beta.


The public beta of SecureCRT 7.5 is expected to be available later this year. The exact date hasn't been determined yet.

Maureen


All times are GMT -6. The time now is 07:06 PM.