V
V
Viktor Yanyshev2017-05-03 10:32:01
linux
Viktor Yanyshev, 2017-05-03 10:32:01

What are the reasons why key authorization does not work?

Ubuntu Server 16.04
On local machine:

$ ssh-keygen
$ ssh-copy-id -i ~/.ssh/id_rsa.pub  юзер_не_рутовый@удалённая_машина
$ ssh-add
$ ssh юзер_не_рутовый@удалённая_машина
$ password:
$ ssh рут@удалённая_машина
$ рут@удалённая_машина:~$
$ service ssh restart
$ exit
$ ssh юзер_не_рутовый@удалённая_машина
$ password

It lets you in under root, it doesn’t let you in by key, only with a password, what could be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sergey, 2017-05-03
@dev_random

ssh -vvv юзер_не_рутовый@удалённая_машина
and see what will fall into the log

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question