Improper output in SSH session on OSX using FreeSSHd on Windows with cygwin bash/sh shell

Posted by Tyler Clendenin on Server Fault See other posts from Server Fault or by Tyler Clendenin
Published on 2011-02-02T06:44:31Z Indexed on 2014/06/11 3:29 UTC
Read the original article Hit count: 610

Filed under:
|
|
|
|

I am testing out running an SSH server on a local Windows VM.

I have installed FreeSSHd and set the command shell to "c:\cygwin\bin\sh --login -i" (bash as well) with "Use new console engine" unchecked. (When it was enabled no output would show through the ssh connection anyway)

The shell seems to work, but when connecting from my OS-X terminal using ssh all of the shell results comes out ill formatted.

      $ ls -al
          total 17
                  drwxr-xr-x+ 1 SYSTEM        Administrators 4096 Feb  2 01:00 .
drwxrwxrwt+ 1 Administrator Administrators    0 Feb  2 01:01 ..
                                                               -rw-------  1 SYSTEM        Administrators  128 Feb  2 01:30 .bash_history
                                                         -rwxr-xr-x  1 SYSTEM        Administrators 1150 Feb  2 00:55 .bash_profile
                                                   -rwxr-xr-x  1 SYSTEM        Administrators 3754 Feb  2 00:55 .bashrc
                                       -rwxr-xr-x  1 SYSTEM        Administrators 1461 Feb  2 00:55 .inputrc

Any ideas on why this is happening, how I can fix this?

© Server Fault or respective owner

Related posts about Windows

Related posts about ssh