9.10.6. Configuring Secure Shell Access
Use the following procedure to correctly configure the
sshd
service on the node host:
- Append the following line to the
/etc/ssh/sshd_config
file to configure thesshd
daemon to pass theGIT_SSH
environment variable:AcceptEnv GIT_SSH
- The
sshd
daemon handles a high number ofSSH
connections from developers connecting to the node host to push their changes. Increase the limits on the number of connections to the node host to accommodate this volume:#
sed -i -e "s/^#MaxSessions .*\$/MaxSessions 40/" /etc/ssh/sshd_config
#sed -i -e "s/^#MaxStartups .*\$/MaxStartups 40/" /etc/ssh/sshd_config
Note
If you use the kickstart or bash script, the
configure_sshd_on_node
function performs these steps.