Configuration example of ForceCommand for Ubuntu/Debian
This is an example configuration of PingID SSH for ForceCommand on Ubuntu and Debian distributions.
About this task
This process assumes that you specified |
Steps
-
Edit the sshd_config file.
sudo vi /etc/ssh/sshd_config
-
Add the following lines to the end of the file.
#enable pingid for all users ForceCommand /usr/sbin/pingid_fc
Disable
PermitTunnel
andAllowTcpForwarding
in thesshd_config
file because tunneling and port forwarding are performed before PingID authentication is triggered. -
-
To apply the changes and activate PingID MFA integration with SSH, restart the sshd service.
sudo service sshd restart