LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sshd won't reread the config file - Slackware 9.0 (https://www.linuxquestions.org/questions/linux-software-2/sshd-wont-reread-the-config-file-slackware-9-0-a-177437/)

rose_bud4201 05-03-2004 02:36 PM

sshd won't reread the config file - Slackware 9.0
 
I'm having trouble making changes to my /etc/sshd/sshd_config file and having them take effect...
/etc/rc.d/rc.sshd stop
/etc/rc.d/rc.sshd start
work perfectly, but none of the changes I've made seem to be present. What I want to do is limit access to only myself (AllowUsers laura) and to disable sftp (by commenting out the appropriate Subsystem line).
Does anyone know what I have to do to have sshd restart with the changed config file?

Thanks!
Laura

Tinkster 05-03-2004 02:39 PM

Actually it should just do it.
Have you had a look at the log, and/or
changed the loglevel... ?


Cheers,
Tink

rose_bud4201 05-03-2004 02:59 PM

Call me crazy, but I can't even find where sshd dumps its logs to!
There's nothing in syslog about it, and I any variant of 'locate sshd | grep log' turns up nothing.

Tinkster 05-03-2004 03:07 PM

Quote:

Call me crazy,
Yo Crazy! :}

Quote:

There's nothing in syslog about it, and I any variant of 'locate sshd | grep log' turns up nothing.
Have a look at /var/log/messages ...



Cheers,
Tink

rose_bud4201 05-03-2004 03:17 PM

Ok, I found it ( :p ). I did this:
Code:

bash-2.05b# /etc/rc.d/rc.sshd stop
bash-2.05b# /etc/rc.d/rc.sshd start
bash-2.05b# exit
exit
bash-2.05b$ ssh chris@128.226.220.78
chris@128.226.220.78's password:
Last login: Mon May  3 15:34:21 2004 from bing78.hillghjkl.binghamton.edu
Linux 2.4.20.

What makes us so bitter against people who outwit us
is that they think themselves cleverer than we are.

chris@cleopatra:~$ exit
logout
Connection to 128.226.220.78 closed.
bash-2.05b$

In other words, stopped the service, started the service, and attempted to log on as a user other than 'laura'. This should be completely against the 'AllowUsers laura' line in sshd_config, but for some reason, isn't.

The changes to /var/log/messages as all this was happening was this:
Code:

May  3 15:57:02 cleopatra -- MARK --
May  3 16:13:03 cleopatra sshd[1248]: Received signal 15; terminating.
May  3 16:13:14 cleopatra sshd[1927]: Server listening on 0.0.0.0 port 22.
May  3 16:13:41 cleopatra sshd[1930]: Accepted password for chris from 128.226.220.78 port 35836 ssh2

Can you make anything out of all this?

thanks,
Laura

Tinkster 05-03-2004 07:10 PM

Only if you addes your username but left the line commented ;}


Cheers,
Tink

rose_bud4201 05-03-2004 08:14 PM

nope, line's not commented. sorry :)


All times are GMT -5. The time now is 07:11 AM.