ssh to windows, terminal doesn't work.

Peter Silva peter at bsqt.homeip.net
Tue Sep 25 22:55:59 UTC 2018


On Mon, Sep 24, 2018 at 12:36 PM Ingolf Steinbach <
ingolf.steinbach at gmail.com> wrote:

> Am Sa., 22. Sep. 2018 um 05:04 Uhr schrieb Peter Silva <
> peter at bsqt.homeip.net>:
> > I enabled ssh server on a windows desktop, and I can now ssh to it from
> my ubuntu laptop, and run cmd.exe, powershell and bash (WSL) which all work
> fine, except that in none of them do terminal applications work properly.
>
> Peter, can you give some more information on your environment:
> 1. "echo $TERM" on your ubuntu laptop
>

blacklab is a laptop running completely ordinary Ubuntu 18.04, default
window manager, gnome terminal, bog standard.

blacklab% echo $TERM
xterm-256color
blacklab%ssh alu


> 2. is there a concept of TERM variable in your windows environment?
>

Alu is a running window10 home (which means no remote desktop ;-()
When I ssh in, it puts me in a cmd shell:

Microsoft Windows [Version 10.0.17134.286]

(c) 2018 Microsoft Corporation. All rights reserved.


ender at ALU C:\Users\Ender>set TERM

TERM=xterm-256color


ender at ALU C:\Users\Ender>

3. "echo $TERM" in the bash on Windows (started via ssh) -- does it
> match the output of item 1 above? (usually your ssh client should
> forward that setting to the remote server so that applications running
> there will use control sequences which are appropriate for your local
> terminal)
>

yes.


> 4. does explicitly setting the TERM environment variable in your
> (remote) bash to the same value as in item 1 help?
>

It is already the same, so no, that did not help.


> 5. maybe you are missing some terminal support files/packages on
> windows, so the remote applications would not know how to deal with
> your (local) terminal?
>
>
great idea.  But I don't know if the tranmission of TERM variable is just
ssh client and
server talking to eachother and perhaps Windows doesn't understand TERM at
all.
nothing curses style works properly.

I  tried different TERM settings: vt100, and ansi

no benefit.

thanks for trying. other ideas welcome.



Kind regards
> Ingolf
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20180925/c49289a9/attachment.html>


More information about the ubuntu-users mailing list