2013-12-20 12:55:51 -08:00
|
|
|
= gerrit show-connections
|
2009-05-28 15:12:40 -07:00
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== NAME
|
2018-09-27 10:55:35 -07:00
|
|
|
gerrit show-connections - Display active client SSH connections.
|
2009-05-28 15:12:40 -07:00
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== SYNOPSIS
|
2016-06-23 17:07:37 +02:00
|
|
|
[verse]
|
2013-11-15 11:47:46 -08:00
|
|
|
--
|
2016-06-23 17:07:37 +02:00
|
|
|
_ssh_ -p <port> <host> _gerrit show-connections_
|
|
|
|
[--numeric | -n]
|
2013-11-15 11:47:46 -08:00
|
|
|
--
|
2009-05-28 15:12:40 -07:00
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== DESCRIPTION
|
2009-05-28 15:12:40 -07:00
|
|
|
Presents a table of the active SSH connections, the users who
|
|
|
|
are currently connected to the internal server and performing
|
|
|
|
an activity.
|
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== ACCESS
|
2011-06-16 13:49:42 -07:00
|
|
|
Caller must be a member of the privileged 'Administrators' group,
|
2012-03-21 18:17:17 +01:00
|
|
|
or have been granted
|
|
|
|
link:access-control.html#capability_viewConnections[the 'View Connections' global capability].
|
2009-05-28 15:12:40 -07:00
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== SCRIPTING
|
2009-05-28 15:12:40 -07:00
|
|
|
Intended for interactive use only.
|
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== OPTIONS
|
2011-06-14 16:40:48 -07:00
|
|
|
--numeric::
|
2009-05-28 15:12:40 -07:00
|
|
|
-n::
|
|
|
|
Show client hostnames as IP addresses instead of DNS hostname.
|
|
|
|
|
2013-06-11 01:36:31 -05:00
|
|
|
--wide::
|
|
|
|
-w::
|
|
|
|
Do not format the output to the terminal width (default of
|
|
|
|
80 columns).
|
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== DISPLAY
|
2009-05-28 15:12:40 -07:00
|
|
|
|
2009-11-20 20:15:41 -08:00
|
|
|
Session::
|
|
|
|
Unique session identifier on this server. Session
|
2011-06-14 16:40:48 -07:00
|
|
|
identifiers have a period of 2^32-1 and start from a
|
2009-11-20 20:15:41 -08:00
|
|
|
random value.
|
|
|
|
|
2009-05-28 15:12:40 -07:00
|
|
|
Start::
|
|
|
|
Time (local to the server) that this connection started.
|
2016-08-04 14:43:32 +09:00
|
|
|
Only shown for MINA backend.
|
2009-05-28 15:12:40 -07:00
|
|
|
|
|
|
|
Idle::
|
|
|
|
Time since the last data transfer on this connection.
|
|
|
|
Note that most SSH clients use not only a TCP based
|
|
|
|
connection keep-alive, but also an encrypted keep alive
|
|
|
|
higher up in the SSH protocol stack. That higher keep
|
|
|
|
alive resets the idle timer, about once a minute.
|
2016-08-04 14:43:32 +09:00
|
|
|
Only shown for MINA backend.
|
2009-05-28 15:12:40 -07:00
|
|
|
|
|
|
|
User::
|
2010-01-15 09:41:17 -08:00
|
|
|
The username of the account that is authenticated on this
|
|
|
|
connection. If the -n option is used, this column shows
|
|
|
|
the Account Id instead.
|
2009-05-28 15:12:40 -07:00
|
|
|
|
|
|
|
Remote Host::
|
|
|
|
Reverse lookup hostname, or if -n option is used, the remote
|
|
|
|
IP address.
|
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== EXAMPLES
|
2009-05-28 15:12:40 -07:00
|
|
|
|
|
|
|
With reverse DNS lookup (default):
|
2016-07-06 14:10:22 +02:00
|
|
|
----
|
2018-09-27 10:55:35 -07:00
|
|
|
$ ssh -p 29418 review.example.com gerrit show-connections
|
|
|
|
Session Start Idle User Remote Host
|
|
|
|
--------------------------------------------------------------
|
|
|
|
3abf31e6 20:09:02 00:00:00 jdoe jdoe-desktop.example.com
|
|
|
|
--
|
2016-07-06 14:10:22 +02:00
|
|
|
----
|
2009-05-28 15:12:40 -07:00
|
|
|
|
|
|
|
Without reverse DNS lookup:
|
2016-07-06 14:10:22 +02:00
|
|
|
----
|
2018-09-27 10:55:35 -07:00
|
|
|
$ ssh -p 29418 review.example.com gerrit show-connections -n
|
|
|
|
Session Start Idle User Remote Host
|
|
|
|
--------------------------------------------------------------
|
|
|
|
3abf31e6 20:09:02 00:00:00 a/1001240 10.0.0.1
|
|
|
|
--
|
2016-07-06 14:10:22 +02:00
|
|
|
----
|
2009-05-28 15:55:01 -07:00
|
|
|
|
|
|
|
GERRIT
|
|
|
|
------
|
|
|
|
Part of link:index.html[Gerrit Code Review]
|
2013-10-31 17:26:00 -07:00
|
|
|
|
|
|
|
SEARCHBOX
|
|
|
|
---------
|