diff --git a/scripts/configure_sshconfig.sh b/scripts/configure_sshconfig.sh new file mode 100755 index 0000000..fcc3f32 --- /dev/null +++ b/scripts/configure_sshconfig.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Include directive for ssh_config is not yet honored by zsh-ssh +# (as of 15/05/2025) +# Because of this, we will join files in a single configuration file for the +# time being. + +destination_file=~/.ssh/config + +# Checking for additional folder for bgworld hosts. +if [[ -d ~/.ssh/bgworld ]]; then + # If found, the local folder sshconfig contents will be converted to a + # "personal" file. + destination_file=~/.ssh/config_personal + cat ~/.dotfiles/sshconfig/* >${destination_file} + bash ~/.ssh/bgworld/hooks/update-config +else + cat ~/.dotfiles/sshconfig/* >${destination_file} +fi diff --git a/sshconfig/00-header b/sshconfig/00-header new file mode 100644 index 0000000..b3090d5 --- /dev/null +++ b/sshconfig/00-header @@ -0,0 +1,8 @@ +# vim:sts=4:sw=4:ft=sshconfig +ControlPath ~/.ssh/%r@%h:%p.socket +ControlMaster auto +ServerAliveInterval 120 +TCPKeepAlive yes +#HostKeyAlgorithms=+ssh-dss,ssh-rsa +EnableEscapeCommandline yes + diff --git a/sshconfig/10-home b/sshconfig/10-home new file mode 100644 index 0000000..97498b8 --- /dev/null +++ b/sshconfig/10-home @@ -0,0 +1,30 @@ +# vim:sts=4:sw=4:ft=sshconfig +### Home hosts ### + +Host fisso + HostName 192.168.255.3 + +Host r2d2 + HostName 192.168.255.1 + Port 54545 + +Host osmc + HostName home.sys42.eu + Port 54545 + +Host nas + HostName 192.168.255.2 + User admin + +Host nas-backup + HostName 192.168.255.2 + User backup + +Host octopi octopi.vavassori.lcl + HostName 192.168.255.20 + User pi + +Host vhost + HostName vhost.vavassori.lcl + #HostName 192.168.255.4 + diff --git a/sshconfig/20-contabo b/sshconfig/20-contabo new file mode 100644 index 0000000..2822836 --- /dev/null +++ b/sshconfig/20-contabo @@ -0,0 +1,14 @@ +# vim:sts=4:sw=4:ft=sshconfig +### Contabo ### +Host phobos phobos.sys42.eu + HostName phobos.sys42.eu + Port 45454 + +Host deimos deimos.sys42.eu + HostName deimos.sys42.eu + Port 45454 + +Host maersk maersk.sys42.eu + HostName maersk.sys42.eu + Port 45454 + diff --git a/sshconfig/20-ionos b/sshconfig/20-ionos new file mode 100644 index 0000000..55fb2e4 --- /dev/null +++ b/sshconfig/20-ionos @@ -0,0 +1,6 @@ +# vim:sts=4:sw=4:ft=sshconfig +### IONOS ### +Host tunwg tunwg.sys42.cc + HostName tunwg.sys42.cc + Port 54545 + diff --git a/sshconfig/30-bglug b/sshconfig/30-bglug new file mode 100644 index 0000000..84d3792 --- /dev/null +++ b/sshconfig/30-bglug @@ -0,0 +1,31 @@ +# vim:sts=4:sw=4:ft=sshconfig +### BgLUG ### + +Host bglug-old + HostName 79.137.32.133 + Port 22 + User root + +Host bglug-main + HostName 173.212.234.254 + Port 28375 + User root + +Host vomitino + HostName 10.1.254.10 + User root + IdentityFile ~/.ssh/id_ed25519 + ProxyCommand ssh -W %h:%p phobos + LocalForward 8080 localhost:80 + LocalForward 8443 192.168.45.100:8443 + + +### ServerBGlug esterno ### +Host reposrv + Hostname net.fusili.net + Port 1234 + +Host reposrv-local + Hostname 192.168.1.1 + Port 1234 + diff --git a/sshconfig/30-libreitalia b/sshconfig/30-libreitalia new file mode 100644 index 0000000..85d38bc --- /dev/null +++ b/sshconfig/30-libreitalia @@ -0,0 +1,26 @@ +# vim:sts=4:sw=4:ft=sshconfig +### LibreItalia ### + +Host ciccio.libreitalia.org ciccio + HostName 5.189.185.167 + User emiliano.vavassori@libreitalia.org + Port 54321 + LocalForward 9090 127.0.0.1:9090 + +Host ciccio.vpn + HostName 172.18.255.1 + User emiliano.vavassori@libreitalia.org + Port 54321 + ProxyCommand ssh -W %h:%p franco + LocalForward 9090 127.0.0.1:9090 + +Host franco.libreitalia.org franco + HostName 207.180.245.75 + Port 54321 + +# Alias per deploy conference +Host conference-remote + HostName franco.libreitalia.org + Port 54321 + User root + diff --git a/sshconfig/30-libreschool b/sshconfig/30-libreschool new file mode 100644 index 0000000..6febfbc --- /dev/null +++ b/sshconfig/30-libreschool @@ -0,0 +1,42 @@ +# vim:sts=4:sw=4:ft=sshconfig +### LibreSchool VPN ### + +Host caravaggio + Hostname 172.16.99.6 + User amgmt + +Host iccamozzi + Hostname 172.16.99.10 + User amgmt + +Host iccamozzi.mirror + HostName mirror.iccamozzi.edu + User amgmt + ProxyCommand ssh -W %h:%p iccamozzi + +Host seminario + Hostname 172.16.99.14 + User amgmt + +Host icalpi.salerno1 + Hostname 172.16.99.18 + User amgmt + +Host icalpi.salerno3 + Hostname 172.16.99.22 + User amgmt + +Host icalpi.trecastelli + Hostname 172.16.99.26 + User amgmt + +Host icpiana + HostName 10.0.254.13 + User amgmt + ProxyCommand ssh -W %h:%p phobos + IdentityFile /home/syntaxerrormmm/.ssh/id_rsa + IdentitiesOnly yes + LocalForward 9980 localhost:980 + LocalForward 9443 localhost:443 + LocalForward 9080 localhost:80 + diff --git a/sshconfig/30-tdf b/sshconfig/30-tdf new file mode 100644 index 0000000..bed48e5 --- /dev/null +++ b/sshconfig/30-tdf @@ -0,0 +1,6 @@ +# vim:sts=4:sw=4:ft=sshconfig +# TDF + +Host vm207 + HostName vm207.documentfoundation.org + diff --git a/sshconfig/60-antoniofaccioli b/sshconfig/60-antoniofaccioli new file mode 100644 index 0000000..fe67631 --- /dev/null +++ b/sshconfig/60-antoniofaccioli @@ -0,0 +1,7 @@ +# vim:sts=4:sw=4:ft=sshconfig +# Antonio Faccioli + +Host lo.soluzioniopen + HostName 178.238.230.252 + User root + diff --git a/sshconfig/60-gabrieleponzo b/sshconfig/60-gabrieleponzo new file mode 100644 index 0000000..016d020 --- /dev/null +++ b/sshconfig/60-gabrieleponzo @@ -0,0 +1,7 @@ +# vim:sts=4:sw=4:ft=sshconfig +### Gabriele Ponzo ### + +Host ponzo + HostName vps.progetto.tr.it + Port 21098 + diff --git a/sshconfig/60-stefanodavid b/sshconfig/60-stefanodavid new file mode 100644 index 0000000..1ebecbd --- /dev/null +++ b/sshconfig/60-stefanodavid @@ -0,0 +1,7 @@ +# vim:sts=4:sw=4:ft=sshconfig +### Stefano David ### + +Host bolzano + HostName 10.199.199.1 + User emiliano +