类 PuttyClient
- java.lang.Object
-
- tech.testnx.cah.common.net.ssh.PuttyClient
-
- 所有已实现的接口:
ConnectSSH,HasSshExec,HasSshTunnel
@Deprecated public class PuttyClient extends Object implements HasSshTunnel, HasSshExec
已过时。- 作者:
- Yun
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 booleanconnect()已过时。Connect with SSH Servervoiddisconnect()已过时。Disconnect with SSH ServerStringexecuteCommand(String command)已过时。Remote execute command or commands
Single command like: pwd
Multiple commands like: cd..; pwd; ls -al;
Open a new channel for each invokestatic PuttyClientnewInstance(String sshServerHost, int sshServerPort, String userName, String password)已过时。static PuttyClientnewInstance(String sshServerHost, int sshServerPort, String userName, Path privateKeyPath)已过时。static PuttyClientnewInstance(String sshServerHost, String userName, String password)已过时。static PuttyClientnewInstance(String sshServerHost, String userName, Path privateKeyPath)已过时。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
-
-
-
方法详细资料
-
newInstance
public static PuttyClient newInstance(String sshServerHost, int sshServerPort, String userName, String password)
已过时。
-
newInstance
public static PuttyClient newInstance(String sshServerHost, String userName, String password)
已过时。
-
newInstance
public static PuttyClient newInstance(String sshServerHost, int sshServerPort, String userName, Path privateKeyPath)
已过时。
-
newInstance
public static PuttyClient newInstance(String sshServerHost, String userName, Path privateKeyPath)
已过时。
-
connect
public boolean connect()
已过时。从接口复制的说明:ConnectSSHConnect with SSH Server- 指定者:
connect在接口中ConnectSSH- 返回:
-
disconnect
public void disconnect()
已过时。从接口复制的说明:ConnectSSHDisconnect with SSH Server- 指定者:
disconnect在接口中ConnectSSH
-
setLocalPortForwarding
public void setLocalPortForwarding(int localPort, String remoteHost, int remotePort)已过时。从接口复制的说明:HasSshTunnelSetup SSH tunnel(Local Port Forwarding) (localhost:port to remoteHost:remotePort)- 指定者:
setLocalPortForwarding在接口中HasSshTunnel
-
unsetLocalPortForwarding
public void unsetLocalPortForwarding(int localPort)
已过时。从接口复制的说明:HasSshTunnelRemove SSH tunnel(Local Port Forwarding) from the specific local port- 指定者:
unsetLocalPortForwarding在接口中HasSshTunnel
-
executeCommand
public String executeCommand(String command)
已过时。从接口复制的说明:HasSshExecRemote execute command or commands
Single command like: pwd
Multiple commands like: cd..; pwd; ls -al;
Open a new channel for each invoke- 指定者:
executeCommand在接口中HasSshExec- 返回:
-
-