Насколько я знаю, во время входа в систему SSH выполняются следующие файлы
[SERVER] /etc/environment
[Client] ~/.ssh/environment
-> can be locally overriden by "SSH_ENV" environment variable
-> will override Host=>SendEnv in local ~/.ssh/config
-> will be filtered by "AcceptEnv" directive(s) in remote /etc/ssh/sshd_config
-> will NOT be used if "PermitUserEnvironment no" in remote /etc/ssh/sshd_config
[SERVER] /etc/ssh/sshrc
-> will NOT get executed if "ForceCommand" exists in remote /etc/ssh/sshd_config
-> will NOT get executed if local ~/.ssh/rc exists
-> can be overriden by "ForceCommand" (kind of)
[Client] ~/.ssh/rc
-> will NOT get executed if "ForceCommand" is configured
-> can be overriden by local "???" environment variable?
Как я могу заставить выполнение скрипта на сервере, но все же разрешить клиент использовать его ~/.ssh/rc?
Бонусный вопрос
Возможно ли переопределить локальное местоположение ~/.ssh/rc с помощью переменной окружения? Если да, то какой?