1
0
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:
Nicolas Viennot 2013-07-23 17:02:56 -04:00
parent b476eb22e2
commit 4a6ccae4fa

View File

@ -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");