From 416390ce95484f942949ca0af1381f721fbb5158 Mon Sep 17 00:00:00 2001 From: moons-14 Date: Sat, 20 Jun 2026 01:33:51 +0900 Subject: [PATCH] ssh --- modules/applications/ssh/home.nix | 3 +++ modules/applications/zsh/home.nix | 1 + 2 files changed, 4 insertions(+) diff --git a/modules/applications/ssh/home.nix b/modules/applications/ssh/home.nix index da39484..3b074ee 100644 --- a/modules/applications/ssh/home.nix +++ b/modules/applications/ssh/home.nix @@ -41,6 +41,9 @@ in "*" = { IdentityFile = cfg.defaultIdentityFile; AddKeysToAgent = cfg.addKeysToAgent; + SetEnv = { + TERM = "xterm"; + }; }; }; }; diff --git a/modules/applications/zsh/home.nix b/modules/applications/zsh/home.nix index 529edc1..1e8512f 100644 --- a/modules/applications/zsh/home.nix +++ b/modules/applications/zsh/home.nix @@ -50,6 +50,7 @@ in # ---- from gist: aliases ---- alias docker-compose="docker compose" alias clearsign='export GPG_TTY=$(tty) && openssl rand -hex 16 | gpg --clearsign' + alias lssh='ssh -o KexAlgorithms=+diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 -o Ciphers=+aes256-cbc,aes128-cbc -o HostKeyAlgorithms=+ssh-rsa -o SetEnv=TERM=xterm' ''; }; };