ssh: make number of retries configurable
This commit is contained in:
parent
ef7b428832
commit
042f98784a
2 changed files with 12 additions and 3 deletions
|
@ -60,6 +60,13 @@ This can be disabled with the
|
||||||
.B -R
|
.B -R
|
||||||
option.
|
option.
|
||||||
.PP
|
.PP
|
||||||
|
If
|
||||||
|
.I keyboard-interactive
|
||||||
|
authentication fails, by default it is retried three times.
|
||||||
|
The number of tries can be changed with
|
||||||
|
.BR -T .
|
||||||
|
Setting it to zero disables keyboard-interactive authentication.
|
||||||
|
.PP
|
||||||
The
|
The
|
||||||
.B -d
|
.B -d
|
||||||
option enables debug output.
|
option enables debug output.
|
||||||
|
|
|
@ -52,9 +52,7 @@ enum {
|
||||||
WinPackets = 8, // (1<<15) * 8 = 256K
|
WinPackets = 8, // (1<<15) * 8 = 256K
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
int MaxPwTries = 3; // retry this often for keyboard-interactive
|
||||||
MaxPwTries = 3 // retry this often for keyboard-interactive
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -1152,6 +1150,10 @@ main(int argc, char *argv[])
|
||||||
case 't':
|
case 't':
|
||||||
thumbfile = EARGF(usage());
|
thumbfile = EARGF(usage());
|
||||||
break;
|
break;
|
||||||
|
case 'T':
|
||||||
|
MaxPwTries = strtol(EARGF(usage()), &s, 0);
|
||||||
|
if(*s != 0) usage();
|
||||||
|
break;
|
||||||
} ARGEND;
|
} ARGEND;
|
||||||
|
|
||||||
if(argc == 0)
|
if(argc == 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue