From 1c46b80e3a4c2064d1ce8b818463ae7daf08183f Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Thu, 10 Sep 2026 09:06:35 +0200 Subject: Fix SSH User Configuration While `User=%u` does work in practice, it has some negative side effects. In paricular, `Match` configurations in the user-supplied `.config/dbx/$NAME.ssh_config` use the literal %u instead of the expanded value. Get the user name manually with `id -un` and use that instead of relying on %u expansion. --- dbx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbx b/dbx index ae38e35..6998234 100755 --- a/dbx +++ b/dbx @@ -269,7 +269,7 @@ ssh_user() { if [ -n "$asroot" ]; then user="root" else - user="%u" + user="$(id -un)" fi printf "User=%s\n" "$user" } -- cgit v1.2.3