By doing this, you can create a link to the SSL page.

Generate SSH URL with url_for method

The url_for method can be created not only for HTTP URLs, but for anything that has a URL structure.

Let's create the following SSH URL.

ssh: // 20000/foo/bar.git

Do the following:

my $url = url_for ('/foo/bar.git')->to_abs->scheme('ssh')

First, convert it to an absolute URL with the to_abs method, then set the protocol with the scheme method, the user name with the userinfo method, the host name with the host method, and the port number with the port method.

Associated Information