Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#71 CRLF wrong with Linux ssh

open
nobody
J2SSH (50)
5
2007-01-11
2007-01-11
thomas gentsch
No

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
Hallo!
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
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).

Discussion