linuxopensshldflagscflags

Determine which options OpenSSH was compiled with?


I want to upgrade openssh-server from source code. I have a problem on how to find out what options OpenSSH was compiled with.

How can I determine which options OpenSSH was compiled with?


Solution

  • I am not aware of any place where it would be stored in the packaged binaries. But if you are using some opensource operating system (you should, if you got the compiled packages of OpenSSH), you should be able to get source packages (SRPM, DEB), which contain the recipes to build the package with all the switches and patches used.

    For example Fedora spec file can be found here. Similarly, there are Debian flags to be found in their repository (harder to read).