Skip to content

Support connection urls to make it easy to pull all parameters from a database or simple value (String) #4

@codesplode

Description

@codesplode

I wanted an easy way to make a mapping, or at least store all the connection info in the database for an ssh connection and dynamically make the connections. I have gone as far as making a function for parsing ssh urls into the appropriate components for the tag, including a url parameter for the path to a key file, etc. This would be useful in making resource (mapping) support in Lucee supporting ssh with keys.

My function accepts a string, such as: "ssh://username:password@domain/path?key=pathToPublicKeyFile" and parses the components into a structure matching the cf_ssh tag attributes for jsch. You can then pass this structure to the tag and the connection is made. I would love to make this work as a resource (mapping) in lucee later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions