diff options
author | aiju <devnull@localhost> | 2017-04-24 23:26:43 +0000 |
---|---|---|
committer | aiju <devnull@localhost> | 2017-04-24 23:26:43 +0000 |
commit | 042f98784acb9f09013f65b0c93b7f56e1b8a10a (patch) | |
tree | b6e6b5edb748c0dd9c353b831c320e3aacd230bd /sys/src/cmd/ssh.c | |
parent | ef7b42883242ec39eb4be18c2c5c49b03e5ceaf1 (diff) |
ssh: make number of retries configurable
Diffstat (limited to 'sys/src/cmd/ssh.c')
-rw-r--r-- | sys/src/cmd/ssh.c | 8 |
1 files changed, 5 insertions, 3 deletions
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) |