I just created new clean rootfs and tried to execute commands as described but some libraries are missing.
root@debian:~# rm /etc/ssh/ssh_host* root@debian:~# ssh-keygen -A ssh-keygen: error while loading shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No such file or directory root@debian:~# apt-get update apt-get: error while loading shared libraries: libapt-private.so.0.0: cannot open shared object file: No such file or directory root@debian:~# error while loading shared libraries: libapt-private.so.0.0: