Skip to main content

How do I remove remote root logins on Linux Fedora core 2

More
20 years 1 week ago #5984 by jacko0
ok, thanks for the help.

The "#" seemed to be on all entrys in the file so i assumed that was needed!

But its good to know its normal to get scanned, I will try the public key and see what happens

Thanks
More
19 years 9 months ago #7312 by jacko0
To make the change with out rebooting the server, would i just restart the sshd deamon?

Whats the restart command ;-)
More
19 years 9 months ago #7313 by sahirh
for most systems that would be

/etc/init.d/ssh restart

or alternatively

/etc/init.d/ssh stop
/etc/init.d/ssh start

or furthermore

kill -HUP <process-id of sshd>

You can get the pid of sshd from

ps aux

(first one should work though :P)

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
More
19 years 9 months ago #7315 by jacko0
Hi
I dont seem to have an ssh only a sshd

Whats the difference?

But when i try sshd restart i get "Extra argument restart"

i am using fedora core 1

thanks
More
19 years 9 months ago #7317 by nske
ssh is the ssh client binary, allowing you to connect to some (probably remote) ssh server.

sshd is the ssh server binary (normally accessible only by root) that runs the ssh service.

the /etc/init.d/ssh (or it could be named otherwise like sshd, openssh, opensshd, rc.ssh, etc) is just a control script that allows you to pass the right parameters to start, stop, restart or a few other possible things the sshd.

since an executable file named "sshd" is located inside your $PATH ("echo $PATH" to see what directories that contains), by typing simply "sshd restart" the shell executes that sshd binary (which does not accept any option named "restart") instead of the control script located in /etc/init.d.

Hopefully that's the problem :)
More
19 years 9 months ago #7356 by MaXiMuS
Try service sshd restart !!!
Time to create page: 0.132 seconds