Sometimes you want to log in Linux from Linux without password. To do this you need two commands:

1) ssh-keygen-t dsa – generate a key for the user
2) ssh-copy-id user@hostname.example.com – copy the key to the server which will be log in.

Now we go to the server via ssh

user@hostname.example.com

And there is no problem)