public class JSchCommandShellService extends java.lang.Object implements IRemoteCommandShellService
Modifier and Type | Class and Description |
---|---|
static class |
JSchCommandShellService.Factory |
Constructor and Description |
---|
JSchCommandShellService(IRemoteConnection remoteConnection) |
Modifier and Type | Method and Description |
---|---|
IRemoteProcess |
getCommandShell(int flags)
Get a remote process that runs a command shell on the remote system.
|
IRemoteConnection |
getRemoteConnection() |
public JSchCommandShellService(IRemoteConnection remoteConnection)
public IRemoteConnection getRemoteConnection()
getRemoteConnection
in interface IRemoteConnection.Service
public IRemoteProcess getCommandShell(int flags) throws java.io.IOException
IRemoteCommandShellService
IRemoteProcessBuilder.getSupportedFlags()
to find out the flags
supported by the service provider.
Current flags are:IRemoteProcessBuilder.NONE
- disable any flagsIRemoteProcessBuilder.ALLOCATE_PTY
- allocate a pseudo-terminal for the process (RFC-4254 Sec. 6.2)IRemoteProcessBuilder.FORWARD_X11
- enable X11 forwarding (RFC-4254 Sec. 6.3)
getCommandShell
in interface IRemoteCommandShellService
flags
- bitwise-or of flagsjava.io.IOException