LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-23-2014, 07:30 AM   #1
bjornxon
LQ Newbie
 
Registered: Apr 2014
Location: Örnsköldsvik, Sweden
Distribution: Debian and Elementary OS.
Posts: 3

Rep: Reputation: Disabled
SSH - private keys


Hi all!
If I have a server I wan't to be able to connect to through SSH and use public/private keys, but from multiple clients.

Should I absolutely generate a new key-pair on each client and transfer the public key to the server etc for each one? Is it Ok to just copy the private key to the different clients? Or is that a big No-no?

/Björn
 
Old 04-23-2014, 07:49 AM   #2
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
How about keeping it in on a usb stick (and maybe on your own personal computer) and use it as needed.. The good practice will be that one person should have one private key (regardless of the number of devices)... And maybe one extra backup key for the user with sudo priviledges..
 
Old 04-23-2014, 08:51 AM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by bjornxon View Post
Hi all!
If I have a server I wan't to be able to connect to through SSH and use public/private keys, but from multiple clients.

Should I absolutely generate a new key-pair on each client and transfer the public key to the server etc for each one? Is it Ok to just copy the private key to the different clients? Or is that a big No-no?

/Björn
If you want to log into the server from different clients without using password, make the file authorized_keys on the server in the directory ~/.ssh and copy the text of pub file of one client and paste into authorized_keys file and save it then copy the text of pub file of second client and paste into authorized_keys file of server and save it.

Now when ever clients log in to the server, the server's user's password will not be asked to clients.

If you want to know the directory and file permission, check here.
https://kimmo.suominen.com/docs/ssh/

Last edited by eklavya; 04-23-2014 at 09:08 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how does SSH use public/private Keys tripialos Linux - General 5 01-15-2013 02:51 AM
Unable to use pub/private keys with ssh AncientPC Linux - Newbie 18 07-28-2009 05:30 PM
SSH Private RSA keys keysorsoze Linux - Security 4 11-22-2006 10:44 PM
ssh public/private keys lord_darkhelmet Linux - Newbie 8 10-29-2005 03:14 PM
Help with SSH and public/private keys stodge Linux - Security 5 05-14-2003 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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