Yesterday after I re – enabled root user and rebooted the VPS, now SSH and SFTP are not running. FTP working. I can only connect this VPS via VPS provider web based console.
When I run "ssh restart" command in VPS provider console it shows "19 bad configuration option" in "ssh_config" file. But i didn't do anything like that. However that bad configuration option are similar to the default config file.
So how do i reset the ssh_config file without loosing anything? If i reinstall open SSH it will reset the ssh_config file to the default.
Best Answer
You will have to first uninstall openssh completely. You can do this by running
apt-get remove --purge openssh-server
then install and see if all works.