File inc/ssh.inc.php changed (mode: 100644) (index b37fced..67708ab) |
... |
... |
function rg_ssh_totp($db, $ip, $uid, $paras) |
306 |
306 |
fwrite(STDERR, "\n" |
fwrite(STDERR, "\n" |
307 |
307 |
. 'Posible TOTP commands:' . "\n" |
. 'Posible TOTP commands:' . "\n" |
308 |
308 |
. ' enroll <token> - adds a new device in the system' . "\n" |
. ' enroll <token> - adds a new device in the system' . "\n" |
309 |
|
. ' val [X(w|d|h|m|s)] <token> - adds your IP to the allow list for X time' . "\n" |
|
|
309 |
|
. ' val <token> [X(w|d|h|m|s)] - adds your IP to the allow list for X time' . "\n" |
310 |
310 |
. ' the default is 1 hour; X is a number; defauls is \'minutes\';' . "\n" |
. ' the default is 1 hour; X is a number; defauls is \'minutes\';' . "\n" |
311 |
311 |
. ' w=weeks, d=days, h=hours, m=minutes, and s=seconds' . "\n" |
. ' w=weeks, d=days, h=hours, m=minutes, and s=seconds' . "\n" |
312 |
312 |
. ' list-val - lists the already validated IPs' . "\n" |
. ' list-val - lists the already validated IPs' . "\n" |