~/.ssh/config addede
This commit is contained in:
143
1 Minitools/ssh_config
Normal file
143
1 Minitools/ssh_config
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
###
|
||||||
|
### Version vom 13. September 2024 (2)
|
||||||
|
###
|
||||||
|
# XY_hostname
|
||||||
|
#
|
||||||
|
# X is user
|
||||||
|
# a admin
|
||||||
|
# A andre
|
||||||
|
# c conetadm
|
||||||
|
# g andregeissler
|
||||||
|
# n ansible
|
||||||
|
# r root
|
||||||
|
#
|
||||||
|
# Y is network
|
||||||
|
# l LAN
|
||||||
|
# t Tailscale
|
||||||
|
# v VPN
|
||||||
|
#
|
||||||
|
|
||||||
|
# read config from bottom up
|
||||||
|
# that means higher options overwrites lower ones
|
||||||
|
|
||||||
|
Host jj
|
||||||
|
HostKeyAlias jj
|
||||||
|
User conetadm
|
||||||
|
Hostname 10.101.0.11
|
||||||
|
Host jjj
|
||||||
|
HostKeyAlias jjj
|
||||||
|
User conetadm
|
||||||
|
Hostname 10.1.1.5
|
||||||
|
|
||||||
|
Host ?l_conlxjh01
|
||||||
|
HostKeyAlias jjj
|
||||||
|
Hostname 10.1.1.5
|
||||||
|
Host ?t_conlxjh01
|
||||||
|
HostKeyAlias jjj
|
||||||
|
Hostname conlxjh01.tail22b4a.ts.net
|
||||||
|
|
||||||
|
Host ?l_conlxmc01
|
||||||
|
HostKeyAlias mc
|
||||||
|
Hostname 195.20.133.87
|
||||||
|
Host ?t_conlxmc01
|
||||||
|
HostKeyAlias mc
|
||||||
|
Hostname conlxmc01.tail22b4a.ts.net
|
||||||
|
|
||||||
|
Host ?l_server
|
||||||
|
HostKeyAlias server
|
||||||
|
Hostname 192.168.100.5
|
||||||
|
Host ?t_server
|
||||||
|
HostKeyAlias server
|
||||||
|
Hostname server.tail22b4a.ts.net
|
||||||
|
|
||||||
|
Host ?l_tux
|
||||||
|
HostKeyAlias tux
|
||||||
|
Hostname 192.168.100.100
|
||||||
|
Host ?t_tux
|
||||||
|
HostKeyAlias tux
|
||||||
|
Hostname tux.tail22b4a.ts.net
|
||||||
|
|
||||||
|
Host ?l_vesta
|
||||||
|
HostKeyAlias vesta
|
||||||
|
Hostname vesta.agserver.de
|
||||||
|
Port 2222
|
||||||
|
Host ?l_vesta6
|
||||||
|
HostKeyAlias vesta
|
||||||
|
Hostname 2a01:4f8:120:1086::2
|
||||||
|
Port 2222
|
||||||
|
|
||||||
|
Host supnas01
|
||||||
|
ProxyCommand ssh -qW %h:%p conlxxontro02
|
||||||
|
User sftp
|
||||||
|
HostKeyAlgorithms +ssh-rsa
|
||||||
|
Host conlxxontro02 conlxcert02
|
||||||
|
User conetadm
|
||||||
|
Host vesta.hosting-ffm.de
|
||||||
|
User conetadm
|
||||||
|
ProxyCommand ssh -qW %h:%p jj
|
||||||
|
Host *.conet-services.de
|
||||||
|
User ansible
|
||||||
|
ProxyCommand ssh -qW %h:%p jj
|
||||||
|
|
||||||
|
Host conlx* conmail*
|
||||||
|
HostName %h
|
||||||
|
Port 22
|
||||||
|
User ansible
|
||||||
|
IdentityFile ~/.ssh/ansible_id_rsa
|
||||||
|
HostKeyAlgorithms +ssh-rsa
|
||||||
|
UserKnownHostsFile /dev/null
|
||||||
|
ProxyCommand ssh -qW %h:%p jj
|
||||||
|
|
||||||
|
|
||||||
|
Host switch-admin-*
|
||||||
|
## Zeile notwendig wenn in Admin Umgebung
|
||||||
|
# ProxyCommand none
|
||||||
|
## In Finance Umgebung muss Proxy 'jj' genutzt werden
|
||||||
|
# ProxyCommand ssh -qW %h:%p jj
|
||||||
|
## ssh admin:HOSTNAME@switch-admin-con<1|2>
|
||||||
|
## 1. Login auf Avocent admin/avocent
|
||||||
|
## Verbindung auf Konsole dort
|
||||||
|
## 2. Login auf Gerät ageissler/
|
||||||
|
|
||||||
|
Host switch-* router-* asa-*
|
||||||
|
HostName %h
|
||||||
|
Port 22
|
||||||
|
User ageissler
|
||||||
|
PreferredAuthentications keyboard-interactive,password
|
||||||
|
KbdInteractiveAuthentication yes
|
||||||
|
PasswordAuthentication yes
|
||||||
|
Ciphers aes128-cbc,aes256-cbc,aes192-ctr
|
||||||
|
KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group14-sha1
|
||||||
|
HostKeyAlgorithms +ssh-rsa
|
||||||
|
StrictHostKeyChecking no
|
||||||
|
ForwardX11 no
|
||||||
|
ProxyCommand ssh -qW %h:%p jj
|
||||||
|
|
||||||
|
# set username
|
||||||
|
Host a?_*
|
||||||
|
User admin
|
||||||
|
Host A?_*
|
||||||
|
User andre
|
||||||
|
Host c?_*
|
||||||
|
User conetadm
|
||||||
|
Host g?_*
|
||||||
|
User andregeissler
|
||||||
|
Host r?_*
|
||||||
|
User root
|
||||||
|
Host n?_*
|
||||||
|
User ansible
|
||||||
|
|
||||||
|
# set general settings
|
||||||
|
Host *
|
||||||
|
User andre
|
||||||
|
PreferredAuthentications publickey,keyboard-interactive,password
|
||||||
|
StrictHostKeyChecking no
|
||||||
|
HashKnownHosts no
|
||||||
|
#UserKnownHostsFile /dev/null
|
||||||
|
IdentityFile ~/.ssh/id_ed25519
|
||||||
|
IdentityFile ~/.ssh/ansible_id_rsa
|
||||||
|
CheckHostIP no
|
||||||
|
ForwardX11 yes
|
||||||
|
NoHostAuthenticationForLocalhost yes
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user