D
D
Dmitrii Solovev2015-12-29 17:42:36
SSH
Dmitrii Solovev, 2015-12-29 17:42:36

How do ssh-keygen and OS X work?

Hello.
There is a problem when generating a key using ssh-keygen on OS X 10.10.
If you press the ssh-keygen -t rsaetner three times after entering, a standard key will be generated. Then I upload it to the server with the help ssh-copy-id -i имя ключа юзер@серверand everything works.
If in line:

Enter file in which to save the key (/home/user/.ssh/id_rsa):

If you type in your own name name123 , then authorization without a password does not work, although the key is also added to authorized_keys . Tried both via ssh-copy-id and manually.
I think it's more correct to have a pair of keys for each server, rather than using one, but unfortunately so far it's the only way. I did the same on Linux and it works. How to make it work with my name, and what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2015-12-29
@dimonnwc3

ssh apparently uses the key from the id_rsa file when trying to connect. To specify the desired key, use the -i option
ssh -i /home/user/mycool_key ip_address

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question