LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   SSH / Publik Key (https://www.linuxquestions.org/questions/linux-security-4/ssh-publik-key-4175420972/)

trickynapzter 08-08-2012 04:44 AM

SSH / Publik Key
 
hello everybody, if am going to add another public key to my ssh server, do i need to store it in another file? Or just add it up into one file.

I have already setup the ssh public key for one user, it is stored in ~/.ssh/authorized_keys . If i am going to add another public key.. do i need to create another file? (eg: ~/.ssh/authorized_key2).

Thank you everyone. :)

dubnik 08-08-2012 04:59 AM

Hi

you will add another line to file authorized_keys.


dubnik

trickynapzter 08-08-2012 05:07 AM

Quote:

Originally Posted by dubnik (Post 4748805)
Hi

you will add another line to file authorized_keys.


dubnik

hi dubnik, thanks for the reply... u mean new line but the same file?? thanks

dubnik 08-08-2012 05:29 AM

yes you will create secong pair of keys and you will add line from id_rsa.pub to the file authorized_keys on server
something like this:

ssh-rsa AAAAB3NzaC1kc3MAAACBAK52qcZqnWi2gLehQ....== user@desktop

ssh-rsa AAAAB3NzaC1yc2EAAAABAKP5fdfdfdadasdsd....== user@desktop2

of course there will be your keys and your name with hostname.

trickynapzter 08-08-2012 10:05 PM

Quote:

Originally Posted by dubnik (Post 4748819)
yes you will create secong pair of keys and you will add line from id_rsa.pub to the file authorized_keys on server
something like this:

ssh-rsa AAAAB3NzaC1kc3MAAACBAK52qcZqnWi2gLehQ....== user@desktop

ssh-rsa AAAAB3NzaC1yc2EAAAABAKP5fdfdfdadasdsd....== user@desktop2

of course there will be your keys and your name with hostname.

ahhh okay, got it..thanks dubnik


All times are GMT -5. The time now is 10:30 AM.