You must have physical access to the server. On booting, append to boot

init=/bin/bash

then

#mount -o remount,rw /
#passwd
#exec init

done.
Forgot the root password in debian
Lost root password