Table of Contents

Method FormatHost

Namespace
SshSharp.Config
Assembly
SshSharp.dll

FormatHost(string, int)

Formats a host and port the way known_hosts stores them: host, or [host]:port for non-22 ports.

public static string FormatHost(string host, int port)

Parameters

host string
port int

Returns

string