LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-23-2008, 05:27 PM   #1
Ashkhan
Member
 
Registered: Oct 2003
Distribution: Debian, Solaris, MacOS
Posts: 39

Rep: Reputation: 16
OpenSSH server - default options


Hi all,

I have a quick question. Is it possible to print out what options are used by the OpenSSH server in case the sshd_config file doesn't exist? What default values are used?

Specifically interested in OpenSSH_3.9p1.

From the manual:

-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 configuration file.


It is interesting that sshd (OpenSSH_4.3p2) starts even though there is no sshd_config file. Can't test this with the OpenSSH_3.9p1 version right now.

Thanks in advance

Ash
 
Old 03-23-2008, 06:41 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Have you actually tried stopping and starting it? Maybe the
file got deleted after it was started?


Cheers,
Tink
 
Old 03-23-2008, 07:43 PM   #3
Ashkhan
Member
 
Registered: Oct 2003
Distribution: Debian, Solaris, MacOS
Posts: 39

Original Poster
Rep: Reputation: 16
I deleted the config file and restarted sshd. It works, I can log but I have no idea what options are enabled or what behaviour I can expect from sshd now.
 
Old 03-23-2008, 11:41 PM   #4
yitzle
Member
 
Registered: Aug 2006
Posts: 50

Rep: Reputation: 15
You're sure there is no config file at /etc/default/ssh ?
 
Old 03-24-2008, 06:03 AM   #5
Ashkhan
Member
 
Registered: Oct 2003
Distribution: Debian, Solaris, MacOS
Posts: 39

Original Poster
Rep: Reputation: 16
There was no sshd_config. Actually, I moved the file to /var/tmp and restarted sshd. It seems it remembered its inode. After removing the file sshd refuses to start as mentioned in the manual.

If you create empty sshd_config it is satisfied. What is enabled is a mystery though.
 
Old 03-24-2008, 06:17 AM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'm not saying RTFM, but did you look at man sshd_config? It tells you the defaults for the arguments (at least the first few, before I stopped looking)
 
Old 03-24-2008, 08:08 AM   #7
Ashkhan
Member
 
Registered: Oct 2003
Distribution: Debian, Solaris, MacOS
Posts: 39

Original Poster
Rep: Reputation: 16
Thanks billymayday for poiting that out. I downloaded the default sshd_config shipped with OpenSSH and all the default values are there as comments. The original sshd_config I was looking at was modified and there was only a couple of options.

Feeling a bit stupid
 
  


Reply

Tags
ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
urpmi default options mdk 10.0 jayzuz Mandriva 0 07-29-2004 06:46 PM
Default options for kernel compile... guddler Mandriva 2 03-19-2004 06:12 PM
default kernel options whysyn Slackware 1 06-17-2003 12:27 AM
default user options? hux Linux - Security 2 12-18-2002 11:19 AM
changing the default options on a command? IceNineJon Linux - Newbie 6 08-24-2002 01:07 PM


All times are GMT -5. The time now is 02:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration