Lihat 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.
dan 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.
Menurut itu, defaultnya adalah tidak mengirim variabel apa pun, tetapi TERM tampaknya istimewa. Tetap dikirim.
Oleh karena itu Anda dapat mengubah JANGKA WAKTU saat memanggil ssh (seperti TERM=xterm ssh ...
), mengubahnya setelah masuk (seperti di .bash_profile
), atau menentukan jenis JANGKA yang tidak dikenal di sisi server (dengan asumsi Anda memiliki akses root di sana). Lihat jawaban lain untuk detailnya.
infocmp
dantic
, setelah dikompilasi, tidak perlu untuk sementara berubah$TERM
lagi omong-omong, saya baru saja menyalin (rsync)/usr/share/terminfo/s/screen-256color
dari Fedora 18 ke CentOS, sepertinya berfungsi ok (rsync -tv /usr/share/terminfo/s/screen-256color root@the_host:/usr/share/terminfo/s
).