09-12-2019, 04:41 AM
@Khadeer143
If you really want to thank me without the thanks post that is basically against the rules (low quality and that stuff) you can either simply thank me in the private message or use the reputation feature .
@deanhills
It is possible that @Rehan faced the same issue. The only way to verify would be to install Ubuntu 16.04 on a spare VPS 9 and perform an update to see what happens. If the error messages and etc. are the same --> it is exactly the same bug.
I used this piece of information to fix the issue: https://askubuntu.com/questions/1110828/...r-run-sshd
However I believe my solution is not permanent and the SSH might again stop working on the next reboot. To make the solution permanent there is a need to modify the rc.local file in /etc. This way the OS will apply the fix at every reboot.
Like in this bug report: https://bugs.launchpad.net/ubuntu/+sourc...comments/7
Basically one needs to open /etc/rc.local with a text editor (nano, vi or whatever) and add the following code before the "exit 0" line.
This simple if instruction checks if the folder exists. If the folder exists everything is fine. If it does not the content of the if will create it and apply the right permission.
If you really want to thank me without the thanks post that is basically against the rules (low quality and that stuff) you can either simply thank me in the private message or use the reputation feature .
@deanhills
It is possible that @Rehan faced the same issue. The only way to verify would be to install Ubuntu 16.04 on a spare VPS 9 and perform an update to see what happens. If the error messages and etc. are the same --> it is exactly the same bug.
I used this piece of information to fix the issue: https://askubuntu.com/questions/1110828/...r-run-sshd
However I believe my solution is not permanent and the SSH might again stop working on the next reboot. To make the solution permanent there is a need to modify the rc.local file in /etc. This way the OS will apply the fix at every reboot.
Like in this bug report: https://bugs.launchpad.net/ubuntu/+sourc...comments/7
Basically one needs to open /etc/rc.local with a text editor (nano, vi or whatever) and add the following code before the "exit 0" line.
Code: (Select All)
if [ ! -d /var/run/sshd ]; then
mkdir /var/run/sshd
chmod 0755 /var/run/sshd
fi
This simple if instruction checks if the folder exists. If the folder exists everything is fine. If it does not the content of the if will create it and apply the right permission.