Ver man ssh_config:
SendEnv
Specifies what variables from the local environ(7) should be sent
to the server. Note that environment passing is only supported
for protocol 2. The server must also support it, and the server
must be configured to accept these environment variables. Refer
to AcceptEnv in sshd_config(5) for how to configure the server.
Variables are specified by name, which may contain wildcard char‐
acters. Multiple environment variables may be separated by
whitespace or spread across multiple SendEnv directives. The
default is not to send any environment variables.
y man sshd_config:
AcceptEnv
Specifies what environment variables sent by the client will be
copied into the session's environ(7). See SendEnv in
ssh_config(5) for how to configure the client. Note that envi-
ronment passing is only supported for protocol 2. Variables are
specified by name, which may contain the wildcard characters `*'
and `?'. Multiple environment variables may be separated by
whitespace or spread across multiple AcceptEnv directives. Be
warned that some environment variables could be used to bypass
restricted user environments. For this reason, care should be
taken in the use of this directive. The default is not to accept
any environment variables.
De acuerdo con eso, el valor predeterminado debería ser no enviar ninguna variable, pero TERM parece ser especial. Se envía de todos modos.
Por lo tanto, puede cambiar TERM al llamar a ssh (like TERM=xterm ssh ...
), cambiarlo después de iniciar sesión (like in .bash_profile
) o definir el tipo de TERM desconocido en el lado del servidor (suponiendo que tenga acceso root allí). Ver otra respuesta para más detalles.
infocmp
ytic
, una vez compilado, no es necesario cambiarlo temporalmente de$TERM
nuevo. por cierto, acabo de copiar (rsync)/usr/share/terminfo/s/screen-256color
de Fedora 18 a CentOS, parece que funciona bien (rsync -tv /usr/share/terminfo/s/screen-256color root@the_host:/usr/share/terminfo/s
).