diff options
author | zeripath <art27@cantab.net> | 2021-03-08 02:43:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-08 03:43:59 +0100 |
commit | c03f530212249b18ffb73dfa47c99e9a4ed7c86c (patch) | |
tree | d6fc58f469c32e796491eee02a1f9ccbfde957ae /custom/conf/app.example.ini | |
parent | 78b7529cd471eafefd555fe82b8dbb8b63dcd9f5 (diff) | |
download | gitea-c03f530212249b18ffb73dfa47c99e9a4ed7c86c.tar.gz gitea-c03f530212249b18ffb73dfa47c99e9a4ed7c86c.zip |
Make internal SSH server host key path configurable (#14918)
* Make SSH server host key path configurable
* make it possible to have multiple keys
* Make gitea.rsa the default key
* Add some more logging
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'custom/conf/app.example.ini')
-rw-r--r-- | custom/conf/app.example.ini | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index b86c8f1fae..6edf09e8ae 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -319,6 +319,10 @@ SSH_SERVER_KEY_EXCHANGES = diffie-hellman-group1-sha1, diffie-hellman-group14-sh ; For the built-in SSH server, choose the MACs to support for SSH connections, ; for system SSH this setting has no effect SSH_SERVER_MACS = hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1, hmac-sha1-96 +; For the built-in SSH server, choose the keypair to offer as the host key +; The private key should be at SSH_SERVER_HOST_KEY and the public SSH_SERVER_HOST_KEY.pub +; relative paths are made absolute relative to the APP_DATA_PATH +SSH_SERVER_HOST_KEYS=ssh/gitea.rsa, ssh/gogs.rsa ; Directory to create temporary files in when testing public keys using ssh-keygen, ; default is the system temporary directory. SSH_KEY_TEST_PATH = |