Linux - SoftwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.