public static SshConnection getConnection(String host, int port, String proxy,
                                              Authentication authentication) throws IOException {
        return getConnection(host, port, proxy, authentication, null,
                             GerritDefaultValues.DEFAULT_GERRIT_SSH_CONNECTION_TIMEOUT);
    }
public static SshConnection getConnection ( String host , int port , String proxy , Authentication authentication ) throws IOException { return getConnection ( host , port , proxy , authentication , null , GerritDefaultValues . DEFAULT_GERRIT_SSH_CONNECTION_TIMEOUT ) ; }
Creates a {@link SshConnection}.

@param host           the host name
@param port           the port
@param proxy          the proxy url
@param authentication the credentials
@return a new connection.

@throws IOException if so.
@see SshConnection
@see SshConnectionImpl