Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

SSH Links

Robert Otto
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 22, 2014

Hello, 

We create pages about each router or switch we deploy and at the top we create a ssh2://ipaddress link and the link appears to be created but when we click it nothing happens. I'v gone into the link and verified it is correct. Is there something I'm doing wrong? 

Thanks. 

3 answers

0 votes
Alex Medved _ConfiForms_
Community Champion
December 23, 2014

It seems like ssh2 is not recognised as a valid protocol... ssh:// works but ssh2:// does not

I suppose a trivial use macro will solve the problem:

## Macro title: anyLink
## Macro has a body: N
## Any protocol hyperlink
## @param Link:title=Link|type=string|required=true|desc=Link address
## @param Caption:title=Caption|type=string|required=true|desc=Link caption

<a href="$paramLink" target="_blank">$paramCaption</a>

 

 

 

Edson
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 27, 2019

Thanks for this code! 

I tried it but initially it didn't work (it just output the HTML code instead of rendering the link), but then I changed the last line like this:

## Macro title: anyLink
## Macro has a body: N
## Any protocol hyperlink
## @param Link:title=Link|type=string|required=true|desc=Link address
## @param Caption:title=Caption|type=string|required=true|desc=Link caption

<a href="$paramLink" target="_blank">$paramCaption</a>

Then the output is the correct one.

It seems to be related to this bug (CONFSERVER-46039) . So if you need that feature, please vote and watch it. Also, you can add your use case as a comment so the developers can be aware of the impact it has and take it into consideration while triaging it.

0 votes
Robert Otto
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 22, 2014

We are looking to move away from Mindtouch Dekiwiki and it has the ability to do it. That is unfortunate to read that this is something that Confluence is unable to do. When we click it it just opens our default SSH client that is all I want it to do nothing within Confluence itself. 

0 votes
William Zanchet [Atlassian]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 22, 2014

Hi Robert,

May I ask you, if this ever worked? I'm not aware of such link work.

Confluence doesn't have the ability to open the SSH2 directly.

Cheers,
WZ

James Beckett
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 14, 2016

Confluence doesn't need to "open" the link directly. Opening a suitable application based on a URI is done by the OS protocol handler, all it needs is for the link html to be properly functional in a web page.

With Confluence [5.4.4] when you create a link like "ssh2://example.com", it appears to be accepted, and is rendered in link style, but there is no href property in the generated a tag, unlike for ssh URIs:

&lt;a href="ssh://example.com" rel="nofollow"&gt;ssh://example.com&lt;/a&gt;
&lt;a rel="nofollow"&gt;ssh2://example.com&lt;/a&gt;

This would seem likely to be due to a rule in the markup renderer (or maybe it doesn't even get saved).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events