FIX: sshd could not load host file

If you can ping your server but receive a "Connection closed by [VPS IP]" when trying to establish an SSH connection, connect to your VPS through VNC and check your /var/log/auth.log for the following error:
error: Could not load host key: /etc/ssh/ssh_host_rsa_key
error: Could not load host key: /etc/ssh/ssh_host_dsa_key
error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key

If this is the case, this can be fixed easily by running the following commands:
ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_key
ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_rsa_key 
ssh-keygen -b 1024 -t dsa -f /etc/ssh/ssh_host_dsa_key
  • 21 Users Found This Useful
Was this answer helpful?

Related Articles

IPv6 Configuration

SolusVM does not support DHCP for IPv6, so you must manually configure it. Fusioned offers 5 IPv6...

How to install the Intel PRO/1000 drivers

If you want to install the driver for the Intel PRO/1000 network card, please use these commands...

Why is my network connection limited to 100Mbps?

If your network connection is limited to 100Mbps, your Network Card configuration in SolusVM is...

KVM VPS Installation Guide

You can setup your VPS by running your desired OS installation through VNC. Fusioned offers a...

Can I upload a custom ISO?

Of course! Simply open a ticket with Support and send us the URL of the ISO you wish to load to...