I removed libc6 and now server is broken.
Now no commands work. ls, df nothing but I'm still connected to it on the ssh session. Any help?
You just found out that removing libc6 is a bad idea. Basically nothing will work, except for statically linked programs and programs that are already running.
You may be able to use scp to copy the library to the correct position.
If you can't recreate the library with the available programs, you have to boot a live system from another source and reinstall libc6.
You could copy the package from your iso
or dvd
to your machine using scp
with another computer, I guess (?)
Then use dpkg -i
to install the package again.
EDIT: Pretty sure you're not the only one who came accross this problem, have you done any research before asking ?