config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit ef1602df4674db373667e95ddbd82c6bca71b5bd
parent fe8e2eddf19c481bbd8969c7e2ee0ec90bf7086c
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Mon, 27 Feb 2023 11:29:25 -0800

Update ssh config

It's been reworked to try and use less pseudo hostnames and to try
and select keys using tokens. Sometimes hosts are used to select
certain configurations though, such as with mail and backup hosts.

Diffstat:
Mlocal/ssh/.ssh/config | 66+++++++++++++++++++++++++++++++++---------------------------------
1 file changed, 33 insertions(+), 33 deletions(-)

diff --git a/local/ssh/.ssh/config b/local/ssh/.ssh/config @@ -1,54 +1,54 @@ -Host var.lan -Identityfile /home/jacob/.ssh/rsa-ids/var.lan/jacob -User jacob +# general -Host var.lan wifi.var.lan -Identityfile /home/jacob/.ssh/rsa-ids/var.lan/jacob -User jacob +Host mail.* +IdentityFile /home/jacob/.ssh/rsa-ids/etc/mail -Host mir -Hostname var.lan -Identityfile /home/jacob/.ssh/rsa-ids/var.lan/root +Host backup.* +IdentityFile /home/jacob/.ssh/rsa-ids/etc/backup User root +# localhost + Host git Hostname localhost IdentityFile /home/jacob/.ssh/rsa-ids/localhost/git User git -Host ams.jacobedwards.org -Hostname ams.jacobedwards.org -IdentityFile /home/jacob/.ssh/rsa-ids/ams/jacob -User jacob +# var.lan -Host amshost -Hostname server14.openbsd.amsterdam -IdentityFile /home/jacob/.ssh/rsa-ids/ams/jacob -Port 31415 +# (wifi.var.lan is simply the address of it's wireless NIC) +Host var.lan wifi.var.lan +Identityfile /home/jacob/.ssh/rsa-ids/var.lan/%r User jacob -VerifyHostKeyDNS yes -Host jacobedwards.org -IdentityFile /home/jacob/.ssh/rsa-ids/jacobedwards.org/jacob -User jacob +Host mail.var.lan +Hostname wifi.var.lan -Host mail -Hostname jacobedwards.org -IdentityFile /home/jacob/.ssh/rsa-ids/ams/mail +Host backup.var.lan +Hostname wifi.var.lan + +# jacobedwards.org + +Host jacobedwards.org +IdentityFile /home/jacob/.ssh/rsa-ids/%h/%u User jacob -Host cvs.jacobedwards.org -IdentityFile /home/jacob/.ssh/rsa-ids/ams/cvs +# git, cvs +Host *.jacobedwards.org +IdentityFile /home/jacob/.ssh/rsa-ids/ams/%h -Host git.jacobedwards.org +Host ams.jacobedwards.org IdentityFile /home/jacob/.ssh/rsa-ids/ams/jacob +User jacob Host backup.jacobedwards.org Hostname jacobedwards.org -IdentityFile /home/jacob/.ssh/rsa-ids/backup -User root -Host backup.var.lan -Hostname var.lan -IdentityFile /home/jacob/.ssh/rsa-ids/backup -User root +# openbsd.amsterdam + +Host amshost +Hostname server14.openbsd.amsterdam +IdentityFile /home/jacob/.ssh/rsa-ids/ams/jacob +Port 31415 +User jacob +VerifyHostKeyDNS yes