LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-12-2014, 03:27 AM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 527

Rep: Reputation: Disabled
SSH access keys where are they located, how to sync them?


Hello,

i would like to setup password-sess access between 3 servers and allow quick addition of additional servers into password less group.

I want to ask how to do it so when i add new server i dont need to run difficult command on each of the server?


----
im using redhat CentOS only, please where (which file) is located ssh key info
a) on local server that is allowing connection
b) on remote server which is allowed to connect
?
Thank You

Last edited by postcd; 11-12-2014 at 03:28 AM.
 
Old 11-12-2014, 06:56 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Wow this is pretty basic stuff, if you are setting up and maintaing a network you should know this, here's a hint read the ssh man page!
 
Old 11-12-2014, 10:02 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
The most-common answer is that the keys are stored in physical files, at designated locations, and that the SSH daemon will pay-attention to them only if their security-permissions settings are exactly correct.

However ... this is not the only answer. SSH is also friendly to distributed-authentication protocols such as LDAP (nee "Microsoft OpenDirectory") and Kerberos. If you have many servers to manage, you could instruct the SSH implementations on each server to obtain the necessary credentials from such a source, instead of looking at per-computer files. (And I would advise you to do just that.) "Google It.™" There's a lot to read.

The overwhelming advantage here is that you can use LDAP to centrally-manage everything, including login credentials, and you can link everything together ("all of them talking to the same authority") to create a single sign-on to your "system of systems." Once the user successfully "logs in," that one identity can be picked-up and used by all kinds of servers, such as internal Apache-or-not web servers, file servers and whatnot. And of course, sshd. Attributes, security levels, roles and so-forth are well defined, but in a very flexible way. And your security team manages it all from one place, in one way.

Last edited by sundialsvcs; 11-25-2014 at 07:05 AM.
 
Old 11-13-2014, 04:50 AM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
(For what it's worth, nee goes the opposite direction.)

The default designated location for the public keys on the server would be in the users' accounts in ~/.ssh/authorized_keys, so those are what need to be synced among the servers. So when setting up a new server in that group, you have to find all those files and sync them. You can change the location of that file in the configurations for the SSH server or even add a second public key file, but those other files will still need to be synced.

If you use Kerberos, then that needs to be set up on the servers as well.

So there's not much of a way around syncing files. It is only a matter of which ones. The good news is that such work is easily scriptable and can be automated.

As Keith points out, you'll need the manuals. You should walk through all four (ssh, ssh_config, sshd, and sshd_config) to begin with, just to see what they cover, then read the sections relevant to your set up in detail.
 
1 members found this post helpful.
Old 11-13-2014, 01:31 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by postcd View Post
Hello,

i would like to setup password-sess access between 3 servers and allow quick addition of additional servers into password less group.

I want to ask how to do it so when i add new server i dont need to run difficult command on each of the server?


----
im using redhat CentOS only, please where (which file) is located ssh key info
a) on local server that is allowing connection
b) on remote server which is allowed to connect
?
Thank You
for details on ssh keys, check out the links in my signature.
 
  


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
Setting up ssh access with keys with Putty keymoo Linux - Security 3 09-30-2013 08:20 PM
[SOLVED] Can no longer access function keys 1 to 4 when I ssh to a Sun system hgriggs Slackware 4 01-30-2013 04:50 AM
SSH Access with security keys codenjanod Linux - General 11 12-18-2008 04:48 AM
SSH host keys VS SSH keys kenneho Linux - Security 3 09-11-2008 06:03 AM
Configuring SSH to accept only keys (already have keys) fr0st Linux - Security 3 11-04-2003 03:31 AM

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

All times are GMT -5. The time now is 09:40 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