Created attachment 2481 [details] check for empty arguments in VersionAddendum and ForceCommand When the mentioned options are specified with white spaces, they are accepted by the parser. There are missing checks for empty strings in cp. # /usr/sbin/sshd -o "ForceCommand " -t # /usr/sbin/sshd -o "ForceCommand" -t command-line line 0: Missing argument. The attached patch fixes it.
Comment on attachment 2481 [details] check for empty arguments in VersionAddendum and ForceCommand I think we'd also need to add "ForcedCommand none" to allow you to unset it in a Match block.
Patch applied and will be in the 6.9 release. Thanks.
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1