Answer the question
In order to leave comments, you need to log in
How to login to remote server with root account?
Good afternoon.
There is a local computer and a remote server with CentOS 7. There are root and regular user accounts on the local computer. The server also has root and regular user accounts, but with a different name.
First, I connected to a remote server via openSSH with a password. Then I generated a pair of RSA keys, sent the public key to the server, and now I go through key authentication. All this, if you use a command like ssh [email protected]_name
However, I can not log into the server using the command . An ssh [email protected]_name
error is thrown:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Answer the question
In order to leave comments, you need to log in
vi /etc/ssh/sshd_config
And set
PasswordAuthentication yes
Next
systemctl restart sshd
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question