Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
what does the second key mean. You are trying to connect using a key that is not authorized on the server.
First, copy the contents of mikrotik/.ssh/.id2_rsa.pub to the file 178.154.249.68:/home/ainar/.ssh/.authorized_keys, and only then try to use this publickey.
If I understood the comment about the second account correctly, then .ssh/config
is probably not configured and ssh is trying to log in to account 2 with the key from account 1. If the accounts are on different servers, then set the correspondence between the keys and servers:
Host x.x.x.x
IdentityFile ~/.ssh/ключ1
Host y.y.y.y
IdentityFile ~/.ssh/ключ2
Host x.x.x.x
User юзернейм1
IdentityFile ~/.ssh/ключ1
User юзернейм2
IdentityFile ~/.ssh/ключ2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question