On This Page
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
- To edit the SSH authentication configuration, enter:
-
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 - To add the RADIUS server IP address and secret, enter:
- Add the following line to the file /etc/raddb/server:
- To restart the SSHD service, enter:
- Run this command for each RADIUS user:
vi /etc/pam.d/sshd
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
<radius_ip> <secret> 3
systemctl restart sshd
useradd <username>