summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-04-16 10:03:14 +0000
committerXiao Pan <gky44px1999@gmail.com>2024-04-16 10:03:14 +0000
commitfdb5313bf8e5f09a55674ee9aa81c39ce9822d8b (patch)
tree626cb79517dfa778d9652e8c68545d80e3eb787c /etc
parentfd56f1a1d66bf5cb2124f41f86b68bdb1075cc07 (diff)
sshd accept COLORTERM env to fix ls no color
If client use alacritty, after ssh into this remote server, ls doesn't show color. Can be workarounded by server sshd accept COLORTERM and client sshd send env. More see my comments in alacritty.toml config.
Diffstat (limited to 'etc')
-rw-r--r--etc/ssh/sshd_config2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/ssh/sshd_config b/etc/ssh/sshd_config
index 1438778c..78118fad 100644
--- a/etc/ssh/sshd_config
+++ b/etc/ssh/sshd_config
@@ -7,6 +7,8 @@ PasswordAuthentication no
# KbdInteractiveAuthentication no and UsePAM yes are Arch Linux default settings see /etc/ssh/sshd_config.d/00-archlinux.conf, I need these configs, I put them here just in case Arch Linux change the defaults in the future.
KbdInteractiveAuthentication no
UsePAM yes
+# when ssh into this remote server, client if use alacritty need `SendEnv COLORTERM` to send the env to server, so server ls can default output color, more see comments in my alacritty.toml config
+AcceptEnv COLORTERM
# Include drop-in configurations
Include /etc/ssh/sshd_config.d/*.conf