summaryrefslogtreecommitdiff
path: root/config.yml.example
diff options
context:
space:
mode:
authorIgor Drozdov <idrozdov@gitlab.com>2022-05-23 19:09:54 +0400
committerIgor Drozdov <idrozdov@gitlab.com>2022-05-23 21:07:12 +0400
commit0d69e6d744de7368e378f396369e0b9568a76da1 (patch)
tree7adfed98bed7f9c8583bdcb225c4e795202bc3d8 /config.yml.example
parentc40ad688ed72357a58ba8481ba9382cabfc59375 (diff)
downloadgitlab-shell-0d69e6d744de7368e378f396369e0b9568a76da1.tar.gz
Abort long-running unauthenticated SSH connections
The config option is basically a copy of LoginGraceTime OpenSSH option. If an SSH connection is hanging unauthenticated, after some period of time, the connection gets canceled. The value is configurable, the server waits for 60 seconds by default.
Diffstat (limited to 'config.yml.example')
-rw-r--r--config.yml.example6
1 files changed, 4 insertions, 2 deletions
diff --git a/config.yml.example b/config.yml.example
index 0e75d75..2744fc9 100644
--- a/config.yml.example
+++ b/config.yml.example
@@ -76,10 +76,12 @@ sshd:
web_listen: "localhost:9122"
# Maximum number of concurrent sessions allowed on a single SSH connection. Defaults to 10.
concurrent_sessions_limit: 10
- # Sets an interval after which server will send keepalive message to a client
+ # Sets an interval after which server will send keepalive message to a client. Defaults to 15s.
client_alive_interval: 15
- # The server waits for this time (in seconds) for the ongoing connections to complete before shutting down. Defaults to 10.
+ # The server waits for this time for the ongoing connections to complete before shutting down. Defaults to 10s.
grace_period: 10
+ # The server disconnects after this time if the user has not successfully logged in. Defaults to 60s.
+ login_grace_time: 60
# A short timeout to decide to abort the connection if the protocol header is not seen within it. Defaults to 500ms
proxy_header_timeout: 500ms
# The endpoint that returns 200 OK if the server is ready to receive incoming connections; otherwise, it returns 503 Service Unavailable. Defaults to "/start".