mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Authentication timeout set to 60s
This commit is contained in:
parent
b476eb22e2
commit
4a6ccae4fa
@ -148,6 +148,7 @@ static int init_client_step(struct tmate_ssh_client *client,
|
||||
static void client_bootstrap(struct tmate_ssh_client *client)
|
||||
{
|
||||
int auth = 0;
|
||||
int grace_period = SSH_GRACE_PERIOD;
|
||||
ssh_session session = client->session;
|
||||
ssh_channel channel = NULL;
|
||||
ssh_message msg;
|
||||
@ -161,6 +162,7 @@ static void client_bootstrap(struct tmate_ssh_client *client)
|
||||
|
||||
alarm(SSH_GRACE_PERIOD);
|
||||
|
||||
ssh_options_set(session, SSH_OPTIONS_TIMEOUT, &grace_period);
|
||||
ssh_options_set(session, SSH_OPTIONS_COMPRESSION, "yes");
|
||||
|
||||
tmate_debug("Exchanging DH keys");
|
||||
|
Loading…
x
Reference in New Issue
Block a user