I have built a SSH Server mainly as documented. Created Auth provider - works.
Created ProcessProvider - works generally.
Executing commands is perfect, only using an interactive shell (have configured /bin/sh -i) does not work completely:
- the shell sends back to me only NL (10), but
no CR (13)
- the command prompt appears twice
Looks like this:
# ssh -p 10022 mi@garlic
bash: no job control in this shell
! /tmp/mi [garlic:tge]> id
uid=1003(tge) gid=100(users) groups=16(dialout),33(video),100(users)
! /tmp/mi [garlic:tge]> ! /tmp/mi [garlic:tge]> exit
Connection to garlic closed.
Why am I actually "tge" instead of "mi" ... (??)
Anyway, I tried using the built-in PTY emulator or without this (direct stream connection to sub-process).