LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-01-2005, 09:15 AM   #1
Koven
Member
 
Registered: Dec 2003
Distribution: Arch Linux
Posts: 49

Rep: Reputation: 15
Changing defaults in ssh


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.

Thanks for your time

Regards
 
Old 07-01-2005, 04:17 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Start sshd with -f option. From man page:
Code:
-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.
 
Old 07-01-2005, 04:55 PM   #3
Koven
Member
 
Registered: Dec 2003
Distribution: Arch Linux
Posts: 49

Original Poster
Rep: Reputation: 15
I did

#sshd_config -f /usr/local/etc/sshd_config

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

sshd_config -f /us/local/etc/sshd_config command

Thank YOU
 
Old 07-03-2005, 03:15 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing ssh port dannyk1 Linux - Security 7 06-17-2005 08:05 AM
Changing SSH login tag? nectron101 Linux - General 2 01-30-2005 09:21 AM
Defaults? aethiolas Linux - Newbie 2 12-21-2004 05:31 AM
Changing SSH remote login look untwisted Linux - Software 2 03-14-2004 12:50 PM
Changing SSH Port taran Linux - Networking 2 08-10-2003 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration