There is a remote Debian server, which for various reasons is partially inoperable. You can connect to it via ssh as root. Is it possible to reinstall this server by logging in as administrator over ssh? If so, how to do it?

    2 answers 2

    You can look in the direction of Debootstrap :

    Debootstrap is a tool that installs the base Debian system into a directory with another system already installed. It does not require an installation CD, only access to the Debian repository. It can also be installed and run with a different operating system, so, for example, you can use Debootstrap to install Debian on an unused partition from a running Gentoo system.

    Algorithm like this:

    1. create a new device on a free disk space,
    2. install on this device using debootstrap,
    3. reboot to a fresh install.

    Installing Debian GNU / Linux from a Unix / Linux system .

      If you want to completely reinstall the OS, then it is impossible via ssh. With KVM-over-ip you can crank it up, but this is a completely different song and cost. ))