9.10.6. Configuring Secure Shell Access

Use the following procedure to correctly configure the sshd service on the node host:
  1. Append the following line to the /etc/ssh/sshd_config file to configure the sshd daemon to pass the GIT_SSH environment variable:
    AcceptEnv GIT_SSH
  2. The sshd daemon handles a high number of SSH 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.