90
2024-Feb-09 09:53 UTC
Adding support for alternative .ssh/rc and .ssh/environment paths
Recently, I attempted to add what I previously suggested to this mailing list of an $SSH_USER_HOME environment variable with which to move the contents of ~/.ssh, which worked fairly well for files used by the SSH _client_ as run by the user. However, it turned out that this was effectively impossible to use in order to relocate the ~/.ssh/rc and ~/.ssh/environment files, obviously due to the fact that these are used by the sshd _server_ component, which runs as root and has no knowledge of any environment variables that other users may specify. What I noticed, however, is that unlike with the authorized_keys file which can have other alternate paths specifiable via sshd_config, there is no such option with the rc and environment files. I was wondering if it may be worth implementing this for these two files so that if the user chooses, they may relocate everything away from ~/.ssh. Kind regards.
Apparently Analagous Threads
- Adding XDG BDS paths *as fallbacks only*, not replacing ~/.ssh
- [Bug 2160] New: Option to disable ~/.ssh/rc in sshd_config
- Disabling $HOME/.ssh/rc
- CA Signed Public Key User Authentication does not honor ~/.ssh/authorized_keys
- [Bug 2713] New: Please provide a StrictModes-like setting (command line parameter) for ssh (client)