Changing your command terminator |
When a command is sent to the SSH server using either the SshSession#send, SshSession#sendWait, or SshSession#sendNoWait methods it is automatically terminated with a line feed \n. Some SSH servers would prefer that commands be terminated only with a carriage return line feed \r\n. To change the command terminator used when sending data invoke the SshSession#setCommandTerminator method.
Example
// change command terminator session.setCommandTerminator("\r\n"); |