LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-08-2012, 04:44 AM   #1
trickynapzter
LQ Newbie
 
Registered: May 2011
Posts: 19

Rep: Reputation: 0
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.
 
Old 08-08-2012, 04:59 AM   #2
dubnik
Member
 
Registered: Dec 2006
Location: Slovakia
Distribution: Red Hat
Posts: 48

Rep: Reputation: 1
Hi

you will add another line to file authorized_keys.


dubnik
 
Old 08-08-2012, 05:07 AM   #3
trickynapzter
LQ Newbie
 
Registered: May 2011
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by dubnik View Post
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
 
Old 08-08-2012, 05:29 AM   #4
dubnik
Member
 
Registered: Dec 2006
Location: Slovakia
Distribution: Red Hat
Posts: 48

Rep: Reputation: 1
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.
 
Old 08-08-2012, 10:05 PM   #5
trickynapzter
LQ Newbie
 
Registered: May 2011
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by dubnik View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh inside ssh asks for "Enter passphrase for key..." hedpe Linux - Newbie 1 04-30-2012 09:20 AM
open-ssh vs. commercial ssh (tru64), public-key auth not possible? cf050 Linux - Networking 8 03-28-2012 11:15 AM
SSH skips public key authentication for a key, but works with another key simopal6 Linux - General 1 07-06-2011 08:33 AM
Putty/SSH login failed when using RSA public key: 'Server refused our key' itsecx@gmail.com Linux - Server 10 10-04-2010 01:19 PM
ssh / ssh-key -- its always asking for passphrase BaerRS Linux - General 1 01-07-2003 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration