arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connection refused
#14
(09-11-2019, 06:59 PM)Hidden Refuge Wrote: A bit of research revealed a bug in Ubuntu 16.04. An important folder where the SSH server will store its PID file is not being created during the upgrade. The solution is quite simple!

apt-get --purge remove openssh-server -y && apt-get --purge autoremove -y
apt-get install openssh-server -y
mkdir /var/run/sshd
chmod 755 /var/run/sshd

After that the SSH service started normally again. Because I fully reinstalled the OpenSSH server it was necessary to edit /etc/ssh/sshd_config and change "PermitRootLogin prohibit-password" to "PermitRootLogin yes". Otherwise you can't login as root via SSH unless start using SSH public key authetication. After changing this simply restart the SSH server process and you're done.
Great support, many thanks @"Hidden Refuge" and much appreciated.  As per usual all of us are learning at the same time as well.

I have a question.  Is this the same bug that Rehan came across at VPS 9 in this support thread?
https://post4vps.com/Thread-Connection-Refused

Will your solution work with VPS 9 update of Ubuntu as well?
Terminal
Thank you to Post4VPS and VirMach for my awesome VPS 9!  
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,160
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