Whenever I ssh to my desktop, I change
ansi so that ssh works better with the Windows terminal. I decided to create
~/.ssh/rc and add
TERM=ansi to it. The problem is, after I ssh into my desktop, the terminal type is still
msys instead of
ansi. Is there a way to fix this?
I couldn't get the TERM setting to work from ~/.ssh/rc either.
I could get it to work by changing the following in
followed by a restart of sshd and taking into account the warning from
Specifies whether ~/.ssh/environment and environment= options in ~/.ssh/authorized_keys are processed by sshd(8). The default is “no”. Enabling environment processing may enable users to bypass access restrictions in some configurations using mechanisms such as LD_PRELOAD.
Then I created the
~/.ssh/environment file and added the line,
logged back in and it worked.
This won't help much, but setting the TERM on the command line before calling ssh (on Linux) does set the term type on the remote end.
TERM=ansi ssh email@example.com firstname.lastname@example.org ~ $ echo $TERM ansi
If you want to set up your variable, you should export it so it will get into your terminal that is