Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to change the defaults parameters from a source installation. I`ve installed openssh from source in debian with a patch for logging called sftplogging.
I had to install it with
./configure --prefix=/usr/local
but i didn't. Now it is installed but it doesn't create sftp logs and I tried to change the default sshd_config file but it didn't work and it's always searching for /etc/ssh/sshd_config and not the /usr/local/etc/sshd_config file (the one that creates logs) and I'm really confused because i don't want to uninstall (make uninstall) from a source code installation.
-f configuration_file
Specifies the name of the configuration file. The default is
/etc/ssh/sshd_config. sshd refuses to start if there is no con-
figuration file.
But nothing happens, when i restart the configuration it searches into /etc/ssh/sshd_config so I don't know what'd be wrong with this stuff.
Thanks in advance. Somehow if I remove the /etc/ssh/sshd_config and I restart ssh service it gives me an error because it doesn't find the sshd_config although I changed before with
The command should be:
/usr/local/sbin/sshd -f /usr/local/etc/sshd_config
I don't think you have sshd_config command. The command copied by you looks incorrectly. Is there a correction needed?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.