- Posts: 45
- Thank you received: 0
How do I remove remote root logins on Linux Fedora core 2
20 years 4 months ago #5984
by jacko0
Replied by jacko0 on topic Re: How do I remove remote root logins on Linux Fedora core 2
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
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
20 years 1 month ago #7312
by jacko0
Replied by jacko0 on topic Re: How do I remove remote root logins on Linux Fedora core 2
To make the change with out rebooting the server, would i just restart the sshd deamon?
Whats the restart command
Whats the restart command

20 years 1 month ago #7313
by sahirh
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
Replied by sahirh on topic Re: How do I remove remote root logins on Linux Fedora core 2
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
)
/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

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
20 years 1 month ago #7315
by jacko0
Replied by jacko0 on topic Re: How do I remove remote root logins on Linux Fedora core 2
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
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
20 years 1 month ago #7317
by nske
Replied by nske on topic Re: How do I remove remote root logins on Linux Fedora core 2
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
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

Time to create page: 0.209 seconds