Skip to main content

parse_ssh_url

Function parse_ssh_url 

Source
pub fn parse_ssh_url(url: &str) -> Result<SshUrl, String>
Expand description

Parse an SSH URL into its components.

Supports two formats:

  • ssh://[user@]host[:port]/path
  • user@host:path (SCP-style)