N
N
Nyakator2017-06-14 22:31:35
linux
Nyakator, 2017-06-14 22:31:35

I broke the SSH configuration file and now I can't log into the server. What to do?

Set up SSH keys. I copied the public key to the server and successfully logged in using it. Then in /etc/ssh/sshd_config I changed "PasswordAuthentication" from "yes" to "no" so as not to enter a password, restarted SSH, stupidly re-logged in and now putty issues "Disconnected: No supported authentication methods ..."
FTP on the server no.
How to fix without reinstalling the virtual machine?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2017-06-14
@Nyakator

it looks like you now need to log in with the key.

A
Alexey Lebedev, 2017-06-14
@swanrnd

Does the hoster have no web console for the server?
If not, nothing, then reinstall.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question