SSH to RADIUS Configuration

You can enable RADIUS authentication for SSH in TufinOS, so that SSH users authenticate with an existing RADIUS server. With RADIUS authentication enabled, you can add RADIUS users to TufinOS.

Prerequisites

  • You must have a correctly configured RADIUS server

  • In your /etc/hosts file, your host name must be specified with the correct interface IP

Configuration

  1. To edit the SSH authentication configuration, enter:
  2. vi /etc/pam.d/sshd

  3. After the line auth required pam_sepermit.so, add the following line:

    auth sufficient pam_radius_auth.so

    The result file will be as showing below:

    #%PAM-1.0
    auth required pam_sepermit.so
    auth sufficient pam_radius_auth.so

  4. To add the RADIUS server IP address and secret, enter:
  5. vi /etc/raddb/server

    If the file /etc/raddb/server does not exist, create the file and change the permissions with the following command:

    chmod 0600 /etc/raddb/server

  6. Add the following line to the file /etc/raddb/server:
  7. <radius_ip> <secret> 3

  8. To restart the SSHD service, enter:
  9. systemctl restart sshd

  10. Run this command for each RADIUS user:
  11. useradd <username>