diff options
| -rw-r--r-- | sys/man/1/ssh | 7 | ||||
| -rw-r--r-- | sys/src/cmd/ssh.c | 8 |
2 files changed, 12 insertions, 3 deletions
diff --git a/sys/man/1/ssh b/sys/man/1/ssh index f8c86bff2..1e5d6cce6 100644 --- a/sys/man/1/ssh +++ b/sys/man/1/ssh @@ -60,6 +60,13 @@ This can be disabled with the .B -R option. .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 .B -d option enables debug output. diff --git a/sys/src/cmd/ssh.c b/sys/src/cmd/ssh.c index c0877f289..a7f45da11 100644 --- a/sys/src/cmd/ssh.c +++ b/sys/src/cmd/ssh.c @@ -52,9 +52,7 @@ enum { WinPackets = 8, // (1<<15) * 8 = 256K }; -enum { - MaxPwTries = 3 // retry this often for keyboard-interactive -}; +int MaxPwTries = 3; // retry this often for keyboard-interactive typedef struct { @@ -1152,6 +1150,10 @@ main(int argc, char *argv[]) case 't': thumbfile = EARGF(usage()); break; + case 'T': + MaxPwTries = strtol(EARGF(usage()), &s, 0); + if(*s != 0) usage(); + break; } ARGEND; if(argc == 0) |
