接口 HasSshTunnel
-
- 所有超级接口:
ConnectSSH
- 所有已知实现类:
JschClient,PuttyClient,SshdClient,SshjClient
public interface HasSshTunnel extends ConnectSSH
- 作者:
- Yun
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidsetLocalPortForwarding(int localPort, String remoteHost, int remotePort)Setup SSH tunnel(Local Port Forwarding) (localhost:port to remoteHost:remotePort)voidunsetLocalPortForwarding(int localPort)Remove SSH tunnel(Local Port Forwarding) from the specific local port-
从接口继承的方法 tech.testnx.cah.common.net.ssh.ConnectSSH
connect, disconnect
-
-
-
-
方法详细资料
-
setLocalPortForwarding
void setLocalPortForwarding(int localPort, String remoteHost, int remotePort)Setup SSH tunnel(Local Port Forwarding) (localhost:port to remoteHost:remotePort)- 参数:
localPort-remoteHost-remotePort-
-
unsetLocalPortForwarding
void unsetLocalPortForwarding(int localPort)
Remove SSH tunnel(Local Port Forwarding) from the specific local port- 参数:
localPort-
-
-