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.
Comments: ** Comment from web user: drieseng **
This regex should be fixed as _ is valid hostname.
Comments: ** Comment from web user: drieseng **
I'd prefer to remove the host name validation altogether (except for a check to see whether the value is not null or empty).
I'll discuss this with Oleg.