Answer the question
In order to leave comments, you need to log in
Why doesn't ssh login work with a key?
The goal is to login to ssh without entering a password.
Local machine - mac os.
The server is ubuntu.
What I did:
I generated a key on the local machine using: The ssh-keygen
required file ~/.ssh/id_rsa.pub appeared.
Further executed: ssh-copy-id -i id_rsa.pub [email protected]
Displayed that 1 key is added and the file ~/.ssh/authorized_keys appeared on the server.
Now for all the instructions that I read - everything should work. However, I do: ssh [email protected]
And the password is still required. No keys are used. Please tell me what could be wrong. Thanks to.
Answer the question
In order to leave comments, you need to log in
You must specify a private key.ssh-copy-id -i id_rsa [email protected]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question