I recently installed openssh on my old dell desktop pc for ease of access because I was going to use it as a media server. I used to be able to access it from my windows 10 laptop using putty but now I am unable to access it regardless if I type in my ip adress or the hostname.
I keep on getting the error"Network error:Network error connection refused" when typing in my ip adress I am able to type in my host name now but when I try typing my username at the login screen I get the error "No supported authentication methods available(server sent:publickey)
I am not sure what to do really so I finally decided to ask on the forums about this issue and what can be done in terms of solutions.
Typing in systemctl status sshd I get the following errors several times "Could not load host key"
"No supported key echange"
edit:resetting the host keys got rid of the errors when typing systemctl status sshd.
Typing - v gives me the error "Temporary failure in name resolution" so I will have to fix that
In terms of ubuntu version I am using ubuntu server 18.04.02 lts. I know this because that is where I downloaded the iso that I burned to my disk.