arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connection refused
#15
@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 Smile .


@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.
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.
[Image: zHHqO5Q.png]
lockThread Closed 


Messages In This Thread
Connection refused - by Khadeer143 - 09-10-2019, 01:40 AM
RE: Connection refused - by Mashiro - 09-10-2019, 04:52 AM
RE: Connection refused - by tiwil - 09-10-2019, 12:53 PM
RE: Connection refused - by Khadeer143 - 09-10-2019, 01:47 PM
RE: Connection refused - by chanalku91 - 09-10-2019, 01:51 PM
RE: Connection refused - by Manal - 09-10-2019, 03:29 PM
RE: Connection refused - by Mashiro - 09-10-2019, 03:56 PM
RE: Connection refused - by Khadeer143 - 09-11-2019, 01:31 AM
RE: Connection refused - by Mashiro - 09-11-2019, 04:45 AM
RE: Connection refused - by Manal - 09-11-2019, 12:49 PM
RE: Connection refused - by deanhills - 09-11-2019, 01:30 PM
RE: Connection refused - by Mashiro - 09-11-2019, 06:59 PM
RE: Connection refused - by deanhills - 09-11-2019, 11:33 PM
RE: Connection refused - by Khadeer143 - 09-11-2019, 07:56 PM
RE: Connection refused - by Mashiro - 09-12-2019, 04:41 AM
RE: Connection refused - by humanpuff69 - 09-13-2019, 02:37 AM
RE: Connection refused - by deanhills - 09-13-2019, 03:19 AM

Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
4,161
01-25-2019, 06:05 AM
Last Post: deanhills

person_pin_circle Users browsing this thread: 4 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting