Re: SSHD Custom ShellFactory

2020-10-29 Thread Oskar Z
Looks like I was able to get it to work JLine following the example outlined here: https://www.google.com/amp/s/blog.javaforge.net/post/68495259926/embedded-ssh-daemon-and-remote-shell-for-java-applicatio/amp

Re: SSHD Custom ShellFactory

2020-10-28 Thread Oskar Z
Thank you! Are there examples of JLine and using in App code? Regards, Oskar > On Oct 28, 2020, at 3:48 PM, Guillaume Nodet wrote: > > Jline can be used to create a fully functional shell and integrate it into > JLine. > The issue Lyor pointed is when you want to integrate SSHD with a native

Re: SSHD Custom ShellFactory

2020-10-28 Thread Oskar Z
I found this project called JLine, and help can be provided there for SSHD and console/terminals? > On Oct 28, 2020, at 12:23 PM, Lyor Goldstein wrote: > >>> But now the issue is how do I get the ECHO to work! When I type my > command, I need to see what I type, as soon as I type a character,

Re: SSHD Custom ShellFactory

2020-10-27 Thread Oskar Z
I have made some more progress, not sure if this will work for all cases, but it works on MacOS and Linux. I had to extend TtyFilterOutputStream with my own class / methods to handleLF and handleCR. So the output looks fine: READY STARTRECORD Status --- Running: 1

Re: SSHD Custom ShellFactory

2020-10-26 Thread Oskar Z
Let me see if I could put some more details around this. So I have two problems. I think they are around PtyModes. 1. The carriage return is not honored no matter what I options I use. I’m just simply trying to get it to work in Mac/Linux environment. Unless I specifically add \r\n it does not

Re: SSHD Custom ShellFactory

2020-10-22 Thread Oskar Z
Does anyone respond to these mailing lists? Can anyone help me with this? > On Oct 21, 2020, at 7:13 PM, Oskar Z wrote: > > > >> On Oct 21, 2020, at 3:40 PM, Oskar Z > > wrote: >> >> Hello, >> >> Hope someone can help or point in the right direction. >> >> I