Aggiunta host personali in repo.

This commit is contained in:
Emiliano Vavassori 2025-05-15 22:48:28 +02:00
parent 259a014d3c
commit 7332d991fc
12 changed files with 203 additions and 0 deletions

19
scripts/configure_sshconfig.sh Executable file
View file

@ -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

8
sshconfig/00-header Normal file
View file

@ -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

30
sshconfig/10-home Normal file
View file

@ -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

14
sshconfig/20-contabo Normal file
View file

@ -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

6
sshconfig/20-ionos Normal file
View file

@ -0,0 +1,6 @@
# vim:sts=4:sw=4:ft=sshconfig
### IONOS ###
Host tunwg tunwg.sys42.cc
HostName tunwg.sys42.cc
Port 54545

31
sshconfig/30-bglug Normal file
View file

@ -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

26
sshconfig/30-libreitalia Normal file
View file

@ -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

42
sshconfig/30-libreschool Normal file
View file

@ -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

6
sshconfig/30-tdf Normal file
View file

@ -0,0 +1,6 @@
# vim:sts=4:sw=4:ft=sshconfig
# TDF
Host vm207
HostName vm207.documentfoundation.org

View file

@ -0,0 +1,7 @@
# vim:sts=4:sw=4:ft=sshconfig
# Antonio Faccioli
Host lo.soluzioniopen
HostName 178.238.230.252
User root

View file

@ -0,0 +1,7 @@
# vim:sts=4:sw=4:ft=sshconfig
### Gabriele Ponzo ###
Host ponzo
HostName vps.progetto.tr.it
Port 21098

View file

@ -0,0 +1,7 @@
# vim:sts=4:sw=4:ft=sshconfig
### Stefano David ###
Host bolzano
HostName 10.199.199.1
User emiliano