public class SSHUtils extends Object
| 构造器和说明 |
|---|
SSHUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
createSSHTunnel(String sshUser,
String sshHost,
InputStream sshKeyInputStream,
String sshPassPhrase,
int sshPort,
String targetHost,
int targetPort,
Properties properties) |
int |
createSSHTunnel(String sshUser,
String password,
String sshHost,
int sshPort,
String targetHost,
int targetPort,
int localPort,
Properties properties)
创建SSH Tunnel
|
int |
createSSHTunnel(String sshUser,
String password,
String sshHost,
int sshPort,
String targetHost,
int targetPort,
Properties properties) |
int |
createSSHTunnel(String sshUser,
String sshHost,
String sshKeyFilePath,
String sshPassPhrase,
int sshPort,
String targetHost,
int targetPort,
int localPort,
Properties properties)
创建Tunnel
|
int |
createSSHTunnel(String sshUser,
String sshHost,
String sshKeyFilePath,
String sshPassPhrase,
int sshPort,
String targetHost,
int targetPort,
Properties properties) |
public int createSSHTunnel(String sshUser, String password, String sshHost, int sshPort, String targetHost, int targetPort, int localPort, Properties properties) throws Exception
sshUser - password - sshHost - sshPort - targetHost - targetPort - localPort - properties - Exceptionpublic int createSSHTunnel(String sshUser, String password, String sshHost, int sshPort, String targetHost, int targetPort, Properties properties) throws Exception
Exceptionpublic int createSSHTunnel(String sshUser, String sshHost, String sshKeyFilePath, String sshPassPhrase, int sshPort, String targetHost, int targetPort, int localPort, Properties properties) throws Exception
sshUser - sshHost - sshKeyFilePath - sshPassPhrase - sshPort - targetHost - targetPort - localPort - properties - com.jcraft.jsch.JSchExceptionExceptionpublic int createSSHTunnel(String sshUser, String sshHost, String sshKeyFilePath, String sshPassPhrase, int sshPort, String targetHost, int targetPort, Properties properties) throws Exception
Exceptionpublic int createSSHTunnel(String sshUser, String sshHost, InputStream sshKeyInputStream, String sshPassPhrase, int sshPort, String targetHost, int targetPort, Properties properties) throws Exception
ExceptionCopyright © 2020. All rights reserved.