Support PermitUserRC #1182
Labels
c-ju
Internal Customer Reference
feature-request
Used for new features in Teleport, improvements to current should be #enhancements
OpenSSH
For customers using Teleport and OpenSSH
server-access
Problem
In some situations it's beneficial to run commands before starting the user's shell or running a command. A common use of this is customizing the creation of a user sessions. Another example is creating and populating a users home directory if it does not exist (in this situation an external identity provider would be used to authenticate).
At the moment Teleport only support reading custom environment variables #1020 not reading a RC file. This makes using an external identity provider difficult in the above mentioned situations.
Proposed Solution
OpenSSH supports executing commands before starting a user's shell, from
man sshd
:This file is run after reading in the users environment as in #1020, the full OpenSSH login process from
man sshd
:We should add a
--permit-user-rc
flag to Teleport and if set then read in and execute~/.ssh/rc
or/etc/ssh/sshrc
like OpenSSH does.The text was updated successfully, but these errors were encountered: