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.
My box running Cobalt Linux 6.0 (based on old Redhat) got hacked recently. After getting the root password reset I was able to login via telnet and SSH until I rebooted the box.
Now it appears sshd isn't running as I get "connection refused" if I try to ssh to the box. It's possible that I forgot to set sshd to auto-start though.
More importantly is that telnet connects fine, but just returns :
-----
Cobalt Linux release 6.0 (Shinkansen-Decaf)
Kernel 2.2.16C32_III on an i586
-----
and then stops... no login / password prompts, and anything you type is echoed to the screen. I've got FTP access to the system, although only using the admin account and not root, as root doesn't have FTP access. :-(
Can anyone point me to the files to check why telnet's not running, or how I can start sshd (maybe via cron?)
I don't have physical access to the box, and I'll have to pay $$$$ for the hosting ISP to fix it, so any help or advice welcome!
Unfortunately I bear no gifts in reply to your first post here...
I'll have to pay $$$$ for the hosting ISP to fix it, so any help or advice welcome
IMNSHO even if you can make telnetd work again (whatever the conditions) it would be unwise (understatement) and (pardon my french and with all due respect) a major overestimation on your side to think you can "heal" your box.
It's not like I don't explore this situation or don't wanna help or sound unsupportive, but in this case I'd say it'd be better to pay money and have a box professionally restored to a state in which you can trust it again rather than muck with it yourself.
yeah, it would probably be best to have your hosting provider replace the image on the disk with a new one and then you should take steps for your box not to get hit again... steps, like, for example, DON'T USE TELNET, only SSH.
usually when a person breaks into your system they leave a method to gain access to it even if you change the root password on it, a rootkit, for example...
chkrootkit could help with this, but a restoration and better security measures are clearly your healthiest choice. even if you remove the rootkit, there's no telling what else the vandal did while inside.
The slightly amusing thing is this happened after installing SSHD and with telnet turned off... Anyway, accepting that I'm going to have to have the machine blown is there anyway to get back so I can run the site migration wizard to help move the sites to the newly imaged machine after. I've got loads of connectivity so bandwidth isn't a problem, but site contents and settings are! Obviously FTP would do it, what about backing up mySQL etc?
Anyway, accepting that I'm going to have to have the machine blown is there anyway to get back so I can run the site migration wizard.
Not that I know unless you got FTP with full access to the filesystem and chmod capabilities.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.