ssh: config: externalize host configuration
Even though it may not be critical to have usernames, hostnames and the respective ssh ports out in the open as they usually aren't secret, it should still be avoided.
This commit is contained in:
parent
479ccc33f8
commit
6c05cf1a98
3 changed files with 7 additions and 37 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "ssh/conf.d"]
|
||||||
|
path = ssh/conf.d
|
||||||
|
url = git@git.preisner.eu:preisi/ssh-config.git
|
||||||
1
ssh/conf.d
Submodule
1
ssh/conf.d
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 0de3082a12e5d60d27df8a255fc312fa3664a305
|
||||||
40
ssh/config
40
ssh/config
|
|
@ -3,44 +3,10 @@
|
||||||
Host *
|
Host *
|
||||||
AddKeysToAgent confirm
|
AddKeysToAgent confirm
|
||||||
|
|
||||||
Host 0?? 0???
|
# Include external config if available
|
||||||
HostName faui%h.informatik.uni-erlangen.de
|
Include conf.d/*
|
||||||
ForwardAgent yes
|
|
||||||
|
|
||||||
Host faui0? faui0?? faui0???
|
# Use if they havent been defined yet:
|
||||||
HostName %h.informatik.uni-erlangen.de
|
|
||||||
ForwardAgent yes
|
|
||||||
|
|
||||||
Host man? man?? big?
|
|
||||||
HostName faui49%h.informatik.uni-erlangen.de
|
|
||||||
ProxyJump ty28wuqu@i4lab1.informatik.uni-erlangen.de
|
|
||||||
|
|
||||||
Match Host faui*
|
|
||||||
User ty28wuqu
|
|
||||||
|
|
||||||
Host ircbox
|
|
||||||
HostName ircbox.informatik.uni-erlangen.de
|
|
||||||
User ty28wuqu
|
|
||||||
|
|
||||||
Host irc
|
|
||||||
HostName tpreisner.de
|
|
||||||
User weechat
|
|
||||||
|
|
||||||
Host server
|
|
||||||
HostName tpreisner.de
|
|
||||||
User root
|
|
||||||
|
|
||||||
Host steep
|
|
||||||
Hostname steep.cs.fau.de
|
|
||||||
User preisi
|
|
||||||
Port 17
|
|
||||||
|
|
||||||
Host pi
|
|
||||||
HostName wg.tpreisner.de
|
|
||||||
# dynamic ip behind hostname would cause warnings
|
|
||||||
CheckHostIP no
|
|
||||||
|
|
||||||
# use if they havent been defined yet:
|
|
||||||
Host *
|
Host *
|
||||||
Compression yes
|
Compression yes
|
||||||
ForwardAgent no
|
ForwardAgent no
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue