- Posts: 45
- Thank you received: 0
How do I remove remote root logins on Linux Fedora core 2
20 years 1 week ago #5965
by jacko0
How do I remove remote root logins on Linux Fedora core 2 was created by jacko0
How do I remove remote root logins on Fedora core 2, I want to be able to login using SSH but disable the root access except via "su".
Thanks
Jacko
Thanks
Jacko
20 years 1 week ago #5966
by nske
Replied by nske on topic Re: How do I remove remote root logins on Linux Fedora core 2
[code:1]PermitRootLogin no[/code:1]
at your sshd_config.
at your sshd_config.
20 years 1 week ago #5968
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
May I recommend a couple of other measures..
Firstly, authenticate only using public / private keys rather than passphrase authentication.. as you said, login as a regular user and then gain privilege...
Furthermore you might want to consider using 'sudo' rather than su.. 'sudo' will allow you much more granularity, and you will only run as root for the duration of a task.. far less chance of doing something wrong.
Firstly, authenticate only using public / private keys rather than passphrase authentication.. as you said, login as a regular user and then gain privilege...
Furthermore you might want to consider using 'sudo' rather than su.. 'sudo' will allow you much more granularity, and you will only run as root for the duration of a task.. far less chance of doing something wrong.
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
20 years 1 week ago #5975
by jacko0
Replied by jacko0 on topic Re: How do I remove remote root logins on Linux Fedora core 2
I have set etc/sshd_config to:
#PermitRootLogin no
But i can still log in as root!
The public / private keys sound a good idea, do u have any info regarding the use and setup of that?
The main problem is that i checked my messages log and 2 different ip's are trying to hack into my pc!
thanks
#PermitRootLogin no
But i can still log in as root!
The public / private keys sound a good idea, do u have any info regarding the use and setup of that?
The main problem is that i checked my messages log and 2 different ip's are trying to hack into my pc!
thanks
20 years 1 week ago #5980
by nske
Replied by nske on topic Re: How do I remove remote root logins on Linux Fedora core 2
"#" means that what follows is a comment and will not be interpreted.
about public key auth method on openssh, check
cfm.gs.washington.edu/security/ssh/client-pkauth/
Don't worry too much about failed login attempts, they are usually caused by mass-range scan & try scripts from scriptkiddies. They will try 2-3 common account combinations and go on..
about public key auth method on openssh, check
cfm.gs.washington.edu/security/ssh/client-pkauth/
Don't worry too much about failed login attempts, they are usually caused by mass-range scan & try scripts from scriptkiddies. They will try 2-3 common account combinations and go on..
20 years 1 week ago #5981
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
Don't worry bout those scans.. as nske said, we all see them.. they try some logins like admin, temp etc etc.. if you switch to public key they wont be able to do anything at all.
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
Time to create page: 0.131 seconds