3 ms·
What does your last sentence mean? What is the "cost" for setting other vars?
by joombaga 5y ago
What does your last sentence mean? What is the "cost" for setting other vars?
- ggm 5y agoIt means it's not constrained by security concerns. Some Env are not forwarded. This one is.
- linsomniac 5y agoThere are only a few environment variables allowed to be set by an SSH client by default. You can add more by adding an "AcceptEnv" line to the SSH server "/etc/sshd_config" file.
- bravetraveler 5y agoAs others have pointed out - security restriction. The service must allow most variables to be set by connecting clients. If TERM were included in this, you might as well install the terminfo! Fortunately that's not the case. One could do some interesting things if say SHELL or LDPRELOAD were allowed to be forwarded.