summaryrefslogtreecommitdiff
path: root/etc/ssh
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 03:12:42 -0700
commitd126ecdd2d2e02b73ec9768284d2fd4ade8a04ec (patch)
treec9650f6943499e9f11ec41009cc747cd421dce00 /etc/ssh
parent3cb0d4123d4f1c1749cb91eec52d067d36f7035e (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/ssh')
-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