LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2024, 04:47 AM   #1
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,311
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
Global SSH client configuration, ssh_config(5), at scale


I am now wondering about what kind of use-cases are out there for pushing out a modified SSH client configuration file using orchestration software.

Any descriptions of such use cases for modifying the global client configuration, no matter how vague, will be gratefully received.

Note, I am wondering only about the client ssh configuration, which would be the one normally found in /etc/ssh/ssh_config on most systems, and not for the server daemon's configuration which would be /etc/ssh/sshd_config.
 
Old 03-25-2024, 09:56 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,709

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
I don't know of a good reason. As far as I know the command line settings can override the user settings (~/.ssh/config) which can override the system settings (/etc/ssh/ssh_config).
 
Old 03-25-2024, 10:17 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,311

Original Poster
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
Quote:
Originally Posted by michaelk View Post
As far as I know the command line settings can override the user settings (~/.ssh/config) which can override the system settings (/etc/ssh/ssh_config).
Yes, that's the priority. I don't know of a good reason either which is why I am now wondering, but I figure there must be some site-wide settings that institutions like to use.
 
Old 03-25-2024, 11:04 AM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,635

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
There are wonderful mass management utilities for enterprise operations such as puppet.
Also, you CAN roll your own and we did before things like puppet became finished and general. I do not recommend rolling your own, rather evaluate existing options. These will allow you to manage much more than just the ssh client, so if that is ALL you need a roll-your-own solution might be better.
 
Old 03-25-2024, 11:06 AM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,311

Original Poster
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
Quote:
Originally Posted by wpeckham View Post
There are wonderful mass management utilities for enterprise operations such as puppet.
Also, you CAN roll your own and we did before things like puppet became finished and general. I do not recommend rolling your own, rather evaluate existing options. These will allow you to manage much more than just the ssh client, so if that is ALL you need a roll-your-own solution might be better.
Yes, there are a lot of orchestration tools out there, some quite good. However, rather than which tools to use for orchestration, my question is about what kind of actual content can be pushed in the context of the SSH client's system-wide configuration file, /etc/ssh/ssh_config.
 
Old 03-25-2024, 11:15 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
I guess nothing "strange" but if you have something special, you can put it there. As far as I remember we don't take care of it at all.
 
Old 03-25-2024, 04:36 PM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,635

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by Turbocapitalist View Post
Yes, there are a lot of orchestration tools out there, some quite good. However, rather than which tools to use for orchestration, my question is about what kind of actual content can be pushed in the context of the SSH client's system-wide configuration file, /etc/ssh/ssh_config.
If you believe the proponents of those software packages there is almost nothing they CANNOT change! I have not used them enough to testify to that, but this is something pretty basic. That is a simple text file for configuration, and requires only superuser authority to change. Simple, if you start as the administrator of each system.
 
Old 03-26-2024, 12:44 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
One reason for distributing a common client cfg would be if your company uses a bastion or 'jump' servers ie you do not allow direct cxns to your actual servers.
https://www.redhat.com/sysadmin/ssh-...tion-proxyjump
 
1 members found this post helpful.
  


Reply

Tags
ssh, ssh_config



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
LXer: SCALE 8x Update: Jobs@SCALE (not Steve), T-shirts, SCALE Uni and UpSCALE talks LXer Syndicated Linux News 0 02-13-2010 01:10 PM
Can't get /etc/ssh/ssh_config changes to stick CoffeeKing!!! Linux - Security 3 01-30-2009 01:09 AM
I installed openssh for redhat 7.3 but no /etc/ssh/ssh_config file was made akay Linux - Networking 1 11-15-2004 05:19 PM
Regarding /etc/ssh/ssh_config (CLUSTERS) nedian123 Linux - Networking 1 08-14-2004 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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