ssh: Add simple ssh configuration module
Added configuration module for ssh client. Sets some basic settings and sets a general structure for the ssh folder: ``` .ssh/ |- config |- conf/ |---|- config.ssh |----- hosts.ssh |- keys/ |---|- id_* ------ id_*.pub ``` Config only refers to the files situated in `conf/` directory, while any `hosts.ssh` configuration redirects to the correct keyfiles lying in `keys/`. Actual settings can be configured in `config.ssh` and this file is also committed to versioning, whereas keys and hosts are not.
This commit is contained in:
parent
b8d680a379
commit
c751df31ad
3 changed files with 15 additions and 0 deletions
8
ssh/.gitignore
vendored
Normal file
8
ssh/.gitignore
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
### SSH ###
|
||||||
|
**/.ssh/id_*
|
||||||
|
**/.ssh/*_id_*
|
||||||
|
|
||||||
|
**/.ssh/keys/
|
||||||
|
**/.ssh/**/hosts.ssh
|
||||||
|
**/.ssh/known_hosts
|
||||||
|
**/.ssh/authorized_keys
|
5
ssh/.ssh/conf/config.ssh
Normal file
5
ssh/.ssh/conf/config.ssh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Send a keepalive package every 15 seconds without data
|
||||||
|
ServerAliveInterval 15
|
||||||
|
|
||||||
|
# conserve some bandwidth at the cost of processing power
|
||||||
|
Compression yes
|
2
ssh/.ssh/config
Normal file
2
ssh/.ssh/config
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Include ~/.ssh/conf/config.ssh
|
||||||
|
Include ~/.ssh/conf/hosts.ssh
|
Loading…
Reference in a new issue