![]() |
![]() |
||||
A feature of SSH, allowing a remote user to connect to a server, and execute a single "forced" command only.
To use SSH forced commands, a public-private key pair is required for authentication.
The public key file is installed in the server's /home/user/.ssh/authorized_keys2 file.
The user authenticates using the -i parameter in SSH or PuTTY, specifying the location of their private key.
When the user authenticates, the command is executed, output from the command is sent to the user, and the user is disconnected when the command exits.