From a918bf5a0c34b3c712e9d20975d7d4cd70d0fc43 Mon Sep 17 00:00:00 2001 From: Anthony Oteri <4360016+anthonyoteri@users.noreply.github.com> Date: Mon, 10 Nov 2025 09:09:58 -0500 Subject: [PATCH] feat: optimize the .ssh/config file Signed-off-by: Anthony Oteri <4360016+anthonyoteri@users.noreply.github.com> --- .ssh/config | 75 +++++++++++++++++++++-------------------------------- 1 file changed, 29 insertions(+), 46 deletions(-) diff --git a/.ssh/config b/.ssh/config index 735ef15..ae2586d 100644 --- a/.ssh/config +++ b/.ssh/config @@ -1,53 +1,36 @@ -Host ol8-dev - HostName ol8-dev - User anthony - -Host srv-nebula-master srv-nebula-master.edgeware.tv - User=oneadmin - Compression=yes - -Host 10.16.48.100 anthony-acd-router - User root - StrictHostKeyChecking no - UserKnownHostsFile=/dev/null - Compression=yes - ForwardAgent=yes - -Host anthony-remote.edgeware.tv - User root - Compression=yes - ForwardAgent=yes - DynamicForward 12345 - +# Disable strict host key checking for Edgeware hosts Host 10.16.*.* 10.19.* orbit-* anthony-* *.edgeware.tv - User root StrictHostKeyChecking no UserKnownHostsFile=/dev/null - Compression=yes - ForwardAgent=yes + ForwardAgent yes + Compression yes -Host 192.168.11.13, anthony-dev - User root - StrictHostKeyChecking no - UserKnownHostsFile=/dev/null - Compression=yes - ForwardAgent=yes +# Example for non-standard port +Host custom-port-host + HostName custom.example.com + User anthony + Port 2222 + ForwardAgent yes + Compression yes -Host convoy - User=edgeware - HostName=convoy.local.oteri.xyz - -Host acd-router - User=edgeware - HostName=acd-router.local.oteri.xyz - -Host streamer - User=edgeware - HostName=streamer.local.oteri.xyz - -Host repackager - User=edgeware - HostName=repackager.local.oteri.xyz +# Specific hosts +Host srv-nebula-master srv-nebula-master.edgeware.tv + User oneadmin + Compression yes +# Production host Host newenglandsalts.com - User=root + User root + +# Global SSH options for productivity +Host * + ForwardAgent yes + AddKeysToAgent yes + ControlMaster auto + ControlPath ~/.ssh/control-%r@%h:%p + ControlPersist 10m + ServerAliveInterval 60 + ServerAliveCountMax 3 + User root + Compression yes + StrictHostKeyChecking yes \ No newline at end of file