diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2026-09-10 09:06:35 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2026-09-10 09:06:35 +0200 |
| commit | 1c46b80e3a4c2064d1ce8b818463ae7daf08183f (patch) | |
| tree | aaae428c4f9be0abd5c86e7c6ea013ec20aee565 | |
| parent | fedf21ce50057d20e431475447fc9e510f32b8ba (diff) | |
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.
| -rwxr-xr-x | dbx | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -269,7 +269,7 @@ ssh_user() { if [ -n "$asroot" ]; then user="root" else - user="%u" + user="$(id -un)" fi printf "User=%s\n" "$user" } |
