Identification of sshd_config file

  • Follow


Hi Everyone,

I am trying to find a way to identify which sshd_config files i being
used by the sshd prcess in Solaris.

If i do initially a find / -name sshd_config it returns a number of
files and i just want the file that is active for the sshd process.

Is there a way to obtain this file?

Thanks so much

Tommy
0
Reply Tommy 5/20/2008 2:33:07 AM

On Mon, 19 May 2008 19:33:07 -0700, Tommy wrote:

> I am trying to find a way to identify which sshd_config files i being
> used by the sshd prcess in Solaris.

/etc/ssh/sshd_config unless your invocation of sshd has been buggered.

0
Reply Dave 5/20/2008 2:38:28 AM


On May 20, 12:38=A0pm, Dave Uhring <daveuhr...@yahoo.com> wrote:
> On Mon, 19 May 2008 19:33:07 -0700, Tommy wrote:
> > I am trying to find a way to identify which sshd_config files i being
> > used by the sshd prcess in Solaris.
>
> /etc/ssh/sshd_config unless your invocation of sshd has been buggered.

Thanks Dave.
Only issue, the customer i am working with decided to compile their
own version of openssh and forgot to remove the other one.

Tom.
0
Reply Tommy 5/20/2008 2:55:01 AM

On May 20, 12:55 pm, Tommy <thomas.jre...@gmail.com> wrote:
> On May 20, 12:38 pm, Dave Uhring <daveuhr...@yahoo.com> wrote:
>
> > On Mon, 19 May 2008 19:33:07 -0700, Tommy wrote:
> > > I am trying to find a way to identify which sshd_config files i being
> > > used by the sshd prcess in Solaris.
>
> > /etc/ssh/sshd_config unless your invocation of sshd has been buggered.
>
> Thanks Dave.
> Only issue, the customer i am working with decided to compile their
> own version of openssh and forgot to remove the other one.
>
> Tom.

I see 2 ways to identify this:

* try to look at your startup script (or xml manifest if your instance
of ssh is started through svc). somewhere there should be referring to
config file - just to check if it's exist.

* try to run sshd manually using truss - you will find out what config
file is used when deamon starts

Cheers,
Nikolai
0
Reply ndjilinski 5/20/2008 3:29:05 AM

Tommy schrieb:
> Hi Everyone,
> 
> I am trying to find a way to identify which sshd_config files i being
> used by the sshd prcess in Solaris.
> 
> If i do initially a find / -name sshd_config it returns a number of
> files and i just want the file that is active for the sshd process.
> 
> Is there a way to obtain this file?
> 
> Thanks so much
> 
> Tommy

pgrep -l -f sshd
maybe it is called with the config as option, else notice the path and 
call it with -V, the openssh say you the config.

Wolfgang
0
Reply Wolfgang 5/20/2008 7:02:46 AM

ndjilinski <ndjilinski@gmail.com> wrote:

> On May 20, 12:55 pm, Tommy <thomas.jre...@gmail.com> wrote:
>> On May 20, 12:38 pm, Dave Uhring <daveuhr...@yahoo.com> wrote:
>>
>> > On Mon, 19 May 2008 19:33:07 -0700, Tommy wrote:
>> > > I am trying to find a way to identify which sshd_config files i being
>> > > used by the sshd prcess in Solaris.
>>
>> > /etc/ssh/sshd_config unless your invocation of sshd has been buggered.
>>
>> Thanks Dave.
>> Only issue, the customer i am working with decided to compile their
>> own version of openssh and forgot to remove the other one.
>>
>> Tom.
> 
> I see 2 ways to identify this:

Additionally, you could use strings.

$ strings /usr/lib/ssh/sshd | grep sshd_config
/etc/ssh/sshd_config
/etc/ssh/sshd_config

Michael
0
Reply Michael 5/20/2008 10:08:32 AM

5 Replies
720 Views

(page loaded in 0.121 seconds)

Similiar Articles:













7/21/2012 8:01:39 PM


Reply: