The constructor for SftpClient and SshClient class throws an ArgumentException when the hostname has an underscrore character '_' . Using disassembly I can find the issue is the regex _rehost in Extensions.cs
This regex should be fixed as _ is valid hostname.
This regex should be fixed as _ is valid hostname.