本文整理汇总了Java中net.schmizz.sshj.SSHClient.DEFAULT_PORT属性的典型用法代码示例。如果您正苦于以下问题:Java SSHClient.DEFAULT_PORT属性的具体用法?Java SSHClient.DEFAULT_PORT怎么用?Java SSHClient.DEFAULT_PORT使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类net.schmizz.sshj.SSHClient
的用法示例。
在下文中一共展示了SSHClient.DEFAULT_PORT属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getHostByIndex
private static Host getHostByIndex(final int host_index) throws IOException {
if (!isOutOfRange(host_index)) {
final String host_name = BLUB_NODE_HOST_NAME_PREFIX + host_index;
// Specify the platform to speed up the experiment execution
return new SSHHost(host_name, Platforms.getCurrentUser(), SSHClient.DEFAULT_PORT, SSHJ_AUTH, LINUX_PLATFORM);
}
throw new NoSuchElementException("cannot instantiate any more hosts; maximum blub hosts available is " + MAX_BLUB_NODES_COUNT);
}
示例2: SSHHost
/**
* Instantiates a new SSH-managed host. Uses the current username to log into the given host.
*
* @param host_name the host name
* @param authentication the authentication method
* @throws IOException if failure occurs while establishing SSH connection
*/
public SSHHost(final String host_name, final AuthMethod authentication) throws IOException {
this(host_name, Platforms.getCurrentUser(), SSHClient.DEFAULT_PORT, authentication);
}