This is regarding setting up passwordless authentication for SSH.
Locally when I run ssh-keygen, I tend to use the naming convention: <company_initials>_id_rsa
For example:
abc_id_rsa
abc_id_rsa.pub
def_id_rsa
def_id_rsa.pub
My wanting to do this is to make key-pair for different servers more easily identifiable.
I have been told that it is okay to make such a change, and it has no impact on the internals of the public/private keys, but that I do need to specify the non-standard name when doing things like SSH'ing into my server.
For instance, I would need to specify this...
Code:
ssh -i ~/.ssh/abc_id_rsa user1@111.222.333.444 -p 22
So finally on to my question...
Being a newbie, I use cPanel to import my Public-Key onto my server.
In cPanel, under the heading "Import SSH Key", is a webform asking for...
- Choose a name for this key
- Paste the private key into the following text box
- Passphrase
- Paste the public key into the following text box
Questions:
1.) When I generated my key-pair, if I used the naming convention above, would I break things if in cPanel I named my Public-Key the default of "id_rsa.pub"?
2.) If I name the Public-Key "abc_id_rsa.pub" do I have to make any changes anywhere else, or will that work?
3.) Should I be including the ".pub" on the end, or is that implied for a Public-Key?
Thanks!