New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/50280#issuecomment-2119299995 Comment: I'm not sure about a reasonable alternative. The closest one is: - set `PermitUserEnvironment BASH_ENV` in `sshd_config` (needs root) - set `BASH_ENV=~/.bashrc` in `~/.ssh/environment` However, this will end up running `~/.bashrc` also in subshells, which is not what we want. The original feature, when `SSH_SOURCE_BASHRC` is set, will source `~/.bashrc` only when `SHLVL=1`, so in principle it will only get run once per ssh.