Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = gerrit show-connections |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 4 | gerrit show-connections - Display active client SSH connections. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 5 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 6 | == SYNOPSIS |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 7 | [verse] |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 8 | -- |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 9 | _ssh_ -p <port> <host> _gerrit show-connections_ |
| 10 | [--numeric | -n] |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 11 | -- |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 12 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 13 | == DESCRIPTION |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 14 | Presents a table of the active SSH connections, the users who |
| 15 | are currently connected to the internal server and performing |
| 16 | an activity. |
| 17 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 18 | == ACCESS |
Shawn O. Pearce | 7f48514 | 2011-06-16 13:49:42 -0700 | [diff] [blame] | 19 | Caller must be a member of the privileged 'Administrators' group, |
Fredrik Luthander | 4860300 | 2012-03-21 18:17:17 +0100 | [diff] [blame] | 20 | or have been granted |
| 21 | link:access-control.html#capability_viewConnections[the 'View Connections' global capability]. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 22 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 23 | == SCRIPTING |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 24 | Intended for interactive use only. |
| 25 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 26 | == OPTIONS |
Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 27 | --numeric:: |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 28 | -n:: |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 29 | Show client hostnames as IP addresses instead of DNS hostname. |
| 30 | |
Doug Kelly | 6599d77 | 2013-06-11 01:36:31 -0500 | [diff] [blame] | 31 | --wide:: |
| 32 | -w:: |
| 33 | Do not format the output to the terminal width (default of |
| 34 | 80 columns). |
| 35 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 36 | == DISPLAY |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 37 | |
Shawn O. Pearce | 3f1a13a | 2009-11-20 20:15:41 -0800 | [diff] [blame] | 38 | Session:: |
| 39 | Unique session identifier on this server. Session |
Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 40 | identifiers have a period of 2^32-1 and start from a |
Shawn O. Pearce | 3f1a13a | 2009-11-20 20:15:41 -0800 | [diff] [blame] | 41 | random value. |
| 42 | |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 43 | Start:: |
| 44 | Time (local to the server) that this connection started. |
David Pursehouse | a407a3f | 2016-08-04 14:43:32 +0900 | [diff] [blame] | 45 | Only shown for MINA backend. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 46 | |
| 47 | Idle:: |
| 48 | Time since the last data transfer on this connection. |
| 49 | Note that most SSH clients use not only a TCP based |
| 50 | connection keep-alive, but also an encrypted keep alive |
| 51 | higher up in the SSH protocol stack. That higher keep |
| 52 | alive resets the idle timer, about once a minute. |
David Pursehouse | a407a3f | 2016-08-04 14:43:32 +0900 | [diff] [blame] | 53 | Only shown for MINA backend. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 54 | |
| 55 | User:: |
Shawn O. Pearce | 099dc17 | 2010-01-15 09:41:17 -0800 | [diff] [blame] | 56 | The username of the account that is authenticated on this |
| 57 | connection. If the -n option is used, this column shows |
| 58 | the Account Id instead. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 59 | |
| 60 | Remote Host:: |
| 61 | Reverse lookup hostname, or if -n option is used, the remote |
| 62 | IP address. |
| 63 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 64 | == EXAMPLES |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 65 | |
| 66 | With reverse DNS lookup (default): |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 67 | ---- |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 68 | $ ssh -p 29418 review.example.com gerrit show-connections |
| 69 | Session Start Idle User Remote Host |
| 70 | -------------------------------------------------------------- |
| 71 | 3abf31e6 20:09:02 00:00:00 jdoe jdoe-desktop.example.com |
| 72 | -- |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 73 | ---- |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 74 | |
| 75 | Without reverse DNS lookup: |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 76 | ---- |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 77 | $ ssh -p 29418 review.example.com gerrit show-connections -n |
| 78 | Session Start Idle User Remote Host |
| 79 | -------------------------------------------------------------- |
| 80 | 3abf31e6 20:09:02 00:00:00 a/1001240 10.0.0.1 |
| 81 | -- |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 82 | ---- |
Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 83 | |
| 84 | GERRIT |
| 85 | ------ |
| 86 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 87 | |
| 88 | SEARCHBOX |
| 89 | --------- |