P
P
Pista2019-11-07 19:06:18
CentOS
Pista, 2019-11-07 19:06:18

How to disable SSH key on Centos 7?

I purchased a Yandex cloud, installed Centos, when creating an image, you must force the key to be set, generated it using Putty Key Generator.
I entered the server with a key, how do you turn off key authentication and use a password?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CityCat4, 2019-11-07
@CityCat4

Delete the key
or
write in the openssh config for this user the authorization methods are only password and keyboard-interactive

A
Alexey Dmitriev, 2019-11-08
@SignFinder

Read the manual on the sshd configuration file https://linux.die.net/man/5/ssh_config

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question