Cursor issues in ssh sessions to Linux hosts from Windows Subsystem for Linux (WSL) on on Windows 10

Categories: bash

Issue:

Using Windows Subsystem for Linux (WSL) on on Windows 10
to establish an ssh session to a Linux host the cursor is acting strangely. You may be in vi or nano editing some file and your backspace suddenly makes the cursor jump or space bar acts like it is in edit mode, seemingly writing over stuff.

Solution:

Edit ~/.bashrc on the host by adding these two lines:

stty sane
export TERM=linux

Log out, log back in. Issue should be resolved.

 

 

«
»

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.