From 46b75239b8a320ae3f2bac539ae6826ec594ffe1 Mon Sep 17 00:00:00 2001 From: Noah Pederson Date: Fri, 27 Sep 2024 10:58:02 -0500 Subject: [PATCH] Fine, don't forward my agent to every host I ssh into --- ssh/extra | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/ssh/extra b/ssh/extra index c313e6a..336b1bf 100644 --- a/ssh/extra +++ b/ssh/extra @@ -1,14 +1,18 @@ AddKeysToAgent yes ServerAliveInterval 60 -ForwardAgent yes +ForwardAgent no ControlMaster auto ControlPath ~/.ssh/master-%r@%h:%p +Host 192.168.1.* + ForwardAgent yes + Host home Hostname packetlostandfound.us User noah IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly yes + ForwardAgent yes Host git.sr.ht HostName git.sr.ht @@ -36,62 +40,62 @@ Host sdf HostName tty.sdf.org User ngp IdentityFile ~/.ssh/id_ed25519 + ForwardAgent yes Host tildeclub HostName tilde.club User ngp IdentityFile ~/.ssh/id_ed25519 + ForwardAgent yes Host envs HostName envs.net User ngp IdentityFile ~/.ssh/id_ed25519 + ForwardAgent yes Host tildeteam HostName tilde.team User ngp IdentityFile ~/.ssh/id_ed25519 + ForwardAgent yes Host ctrl-c HostName ctrl-c.club User ngp IdentityFile ~/.ssh/id_ed25519 + ForwardAgent yes Host tildetown HostName tilde.town User ngp IdentityFile ~/.ssh/id_ed25519 + ForwardAgent yes Host yourtilde HostName yourtilde.com User ngp IdentityFile ~/.ssh/id_ed25519 + ForwardAgent yes Host hashbang - HostName to1.hashbang.sh - IdentitiesOnly yes - User ngp - IdentityFile ~/.ssh/id_ed25519 + HostName to1.hashbang.sh + IdentitiesOnly yes + User ngp + IdentityFile ~/.ssh/id_ed25519 + ForwardAgent yes Host tiny HostName tiny.packetlost.dev User noah IdentityFile ~/.ssh/id_ed25519 - -Host tinybsd - HostName tinybsd.packetlost.dev - User noah - IdentityFile ~/.ssh/id_ed25519 + ForwardAgent yes Host seedbox HostName canopus.usbx.me User ngp IdentityFile ~/.ssh/id_ed25519 - -Host saten - HostName saten.packetlost.dev - User noah - IdentityFile ~/.ssh/id_ed25519 + ForwardAgent no Host launchpad HostName git.launchpad.net -- 2.51.2