Please help me understand SSH
Hello, I am trying to set up two computers, a server and a client. The more I read from different sites the more confused I get. :dazed:
On the server, in the .ssh directory I created id_rsa and id_rsa.pub key pair. Then I made a copy of the public key saved it to authorized_keys file. So now I have three files id_rsa, id_rsa.pub and authorized_keys on the server.
On the client, I copied the authorized_keys from the server to the client's .ssh directory
Now the first time I ssh from the client to the server, it gives the usually verbose output -blah,blah, blah... so I typed yes,
then it asks me for password. Later on I came back to the client to ssh, the verbose blah, blah, blah is gone but it still ask me for password.
I thought the purpose of using key auth is not to have to enter password every time. Is that right?
Also is it correct that the server should have all three files- id_rsa, id_rsa.pub and authorized_keys and
the client only needs the id_rsa.pub and authorized_keys.
And then one last thing, do both server and client need to have known_host file?
Phew, long post! :p
I will really appreciate if someone can explain this to me to help me understand how it works. Thanks in advance. :)