I am connecting to the remote server SSH server and trying to get get the list of files in a particular path I am able to get list of files in the path but they were in unre
After creating the channel, you can set the pseudo terminal type as "dumb"
ChannelShell channel = (ChannelShell) session.openChannel("shell"); channel.setPtyType("dumb");