LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-03-2004, 02:36 PM   #1
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
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
 
Old 05-03-2004, 02:39 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


Cheers,
Tink
 
Old 05-03-2004, 02:59 PM   #3
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Original Poster
Rep: Reputation: 30
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.
 
Old 05-03-2004, 03:07 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 05-03-2004, 03:17 PM   #5
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Original Poster
Rep: Reputation: 30
Ok, I found it ( ). 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
 
Old 05-03-2004, 07:10 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Only if you addes your username but left the line commented ;}


Cheers,
Tink
 
Old 05-03-2004, 08:14 PM   #7
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Original Poster
Rep: Reputation: 30
nope, line's not commented. sorry
 
  


Reply


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
How do I get Bash to reread the bashrc file? will103 Linux - Software 11 04-13-2011 07:27 AM
sshd config saavik Linux - Security 2 09-21-2005 02:17 AM
alternate config file for sshd w/ RH EL3 kmitz Linux - Security 1 01-13-2005 04:46 PM
Slackware config file summary? donbellioni Slackware 5 08-08-2004 03:00 PM
I can't make sshd like my config file Travis86 Linux - Networking 5 07-28-2003 09:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration