Utilities to resolute and parse ssh url.