Hi everyone, I haven a new Linux server but when I want to connect with SSH, I can only use my id_rsa.pub key. I tried making other .pub keys (instead of the id_rsa.pub) but it keeps asking a password when I want to use other keys. Am I missing something here?
I have tried: Editing the permission of my .ssh folder because it seems like a common problem, but it was already set to the correct permission.
Here is the code to make a key and copy it to my server:
ssh-keygen -t rsa -C "[email protected]" ssh-copy-id -i ~/.ssh/test.pub user@myLinuxServer I can find the key on my server in the authorized_keys file so I think copying is not a problem.
I expect: that I can login without giving a password when I type:
Ssh user@host in the terminal, but it still asks for a password. Only when I use ssh-copy-id on the id_rsa.pub key, it will work.
ssh -vv user@hostto see in more deail the login process, when is tried and what is not.