summaryrefslogtreecommitdiff
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 11:14:43 +0100
commit1a276df0ae08897abad9a0878bb070ebefc90cf7 (patch)
tree6da44d914c5968bd0b019c511b25cbcf9e4ef44c
parentc1dc3154c35bab540c7a5dc4e85b1422c89f230a (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.
-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