System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

sshd_config - default environment

 
Billa-User
Regular Advisor

sshd_config - default environment

hello,

Is there such a command to list the "sshd" settings? or should i search "sshd_config" ?
When a ssh setting maybe doesn't exist in "sshd_config", then the default value will take, correct? how can i get the value ?

why i ask this :
i have to add some new value's to all of my HPUX 11iv2 and 11iv3 servers. so i will create a master "sshd_config" for 11iv2 and 11iv3 ( i have the some ssh version).

regards,
3 REPLIES
Ganesan R
Honored Contributor

Re: sshd_config - default environment

Hi,

I don't think single command is available to list the directives configured on sshd_config file. You have to grep or browse through the file.

>>>
When a ssh setting maybe doesn't exist in "sshd_config", then the default value will take, correct? how can i get the value ?
<<<<

Yes. If you want to know the default values for directives look into the file /opt/ssh/README.hp
This file has all the explanation about all directives and its default values.
Best wishes,

Ganesh.
Steven E. Protter
Exalted Contributor

Re: sshd_config - default environment

Shalom,

Its an English language config file, not a binary. cat sshd_config.

As far as your master file, goes, install the same version of open ssh (Secure shell) on two systems v2 v3, then diff them. If they are the same, you can go with your master file idea, if not, you will need a master for each OS version.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Matti_Kurkela
Honored Contributor

Re: sshd_config - default environment

"sshd -T" will display the state of all configuration options if your SSH version is recent enough.

MK
MK