Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
two month lately i got infected with suckit, SHV4, SHV5 rootkit, and i don't know how to uninstalled or to remove it.I think rename the infected is fine this also happened with SHV4 and SHV5, and that make me to shut down SSH Server
this my questions ?
1. i checked that rootkit (suckit, SHV4, SHV5) with rkhunter and chkrootkit
is remove or rename the folder is enough ?
2. regarding with my SSH Server, change port to 222 (default smoothwall distro)
is it good way ?
If you've gotten a rootkit best upgrade everything, run
"netstat -nap"
and look at the lines 0.0.0.0 LISTEN
and see which programs are listening, and upgrade ALL of those programs to the latest versions. And remove any of those programs that you don't need.
No point removing it if someone can just get in again and put in another rootkit. If someone knows your computer is vunerable it doesn't take long to run a port scan and find port 222.
1. i checked that rootkit (suckit, SHV4, SHV5) with rkhunter and chkrootkit is remove or rename the folder is enough ?
No. If you've been compromised and a rootkit was installed, then you absolutely need to format and re-install from scratch (not from a backup). Once someone has gained root on your system, it can be extremely hard to identify all changes or backdoors that may have been installed on the system.
2. regarding with my SSH Server, change port to 222 (default smoothwall distro)
is it good way ?
You'll be better off using good paswords and configuring sshd to not allow root logins. Most port scanners now do some form of service interrogation and can identify what services you are running no matter what port you run them on. Changing to an alternate port will however reduce the number of lame sciptkiddie attacks (like brutessh).
Regading your ssh server you can easily change the port by editing the /etc/ssh/sshd_config file
#Port 22
Port 443
restart the sshd
I chose to put mine on 443 because I travel to other companies and in most cases companies block outbound port 22 however they almost never block 443. This enables me to connect to my site right through their firewall. I can even tunnel vnc, samba, etc. as needed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.