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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-23-2008, 04:27 PM
|
#1
|
|
Member
Registered: Oct 2003
Distribution: Debian, Solaris, MacOS
Posts: 39
Rep:
|
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
|
|
|
|
03-23-2008, 05:41 PM
|
#2
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
Have you actually tried stopping and starting it? Maybe the
file got deleted after it was started?
Cheers,
Tink
|
|
|
|
03-23-2008, 06:43 PM
|
#3
|
|
Member
Registered: Oct 2003
Distribution: Debian, Solaris, MacOS
Posts: 39
Original Poster
Rep:
|
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.
|
|
|
|
03-23-2008, 10:41 PM
|
#4
|
|
Member
Registered: Aug 2006
Posts: 50
Rep:
|
You're sure there is no config file at /etc/default/ssh ?
|
|
|
|
03-24-2008, 05:03 AM
|
#5
|
|
Member
Registered: Oct 2003
Distribution: Debian, Solaris, MacOS
Posts: 39
Original Poster
Rep:
|
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.
|
|
|
|
03-24-2008, 05:17 AM
|
#6
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
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)
|
|
|
|
03-24-2008, 07:08 AM
|
#7
|
|
Member
Registered: Oct 2003
Distribution: Debian, Solaris, MacOS
Posts: 39
Original Poster
Rep:
|
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 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:20 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|