From fdb5313bf8e5f09a55674ee9aa81c39ce9822d8b Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Tue, 16 Apr 2024 10:03:14 +0000 Subject: 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. --- etc/ssh/sshd_config | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc') 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 -- cgit v1.2.3-70-g09d2