blob: c5274e16eef2524da38ab4e95c80fe7fe7e17f6c [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= gerrit show-connections
Shawn O. Pearce4016a932009-05-28 15:12:40 -07002
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
David Shevitzc47f2362018-09-27 10:55:35 -07004gerrit show-connections - Display active client SSH connections.
Shawn O. Pearce4016a932009-05-28 15:12:40 -07005
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08006== SYNOPSIS
Michael Ochmanne2d76a12016-06-23 17:07:37 +02007[verse]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08008--
Michael Ochmanne2d76a12016-06-23 17:07:37 +02009_ssh_ -p <port> <host> _gerrit show-connections_
10 [--numeric | -n]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080011--
Shawn O. Pearce4016a932009-05-28 15:12:40 -070012
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080013== DESCRIPTION
Shawn O. Pearce4016a932009-05-28 15:12:40 -070014Presents a table of the active SSH connections, the users who
15are currently connected to the internal server and performing
16an activity.
17
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080018== ACCESS
Shawn O. Pearce7f485142011-06-16 13:49:42 -070019Caller must be a member of the privileged 'Administrators' group,
Fredrik Luthander48603002012-03-21 18:17:17 +010020or have been granted
21link:access-control.html#capability_viewConnections[the 'View Connections' global capability].
Shawn O. Pearce4016a932009-05-28 15:12:40 -070022
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080023== SCRIPTING
Shawn O. Pearce4016a932009-05-28 15:12:40 -070024Intended for interactive use only.
25
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080026== OPTIONS
Shawn O. Pearce47769242011-06-14 16:40:48 -070027--numeric::
Shawn O. Pearce4016a932009-05-28 15:12:40 -070028-n::
Shawn O. Pearce4016a932009-05-28 15:12:40 -070029 Show client hostnames as IP addresses instead of DNS hostname.
30
Doug Kelly6599d772013-06-11 01:36:31 -050031--wide::
32-w::
33 Do not format the output to the terminal width (default of
34 80 columns).
35
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080036== DISPLAY
Shawn O. Pearce4016a932009-05-28 15:12:40 -070037
Shawn O. Pearce3f1a13a2009-11-20 20:15:41 -080038Session::
39 Unique session identifier on this server. Session
Shawn O. Pearce47769242011-06-14 16:40:48 -070040 identifiers have a period of 2^32-1 and start from a
Shawn O. Pearce3f1a13a2009-11-20 20:15:41 -080041 random value.
42
Shawn O. Pearce4016a932009-05-28 15:12:40 -070043Start::
44 Time (local to the server) that this connection started.
David Pursehousea407a3f2016-08-04 14:43:32 +090045 Only shown for MINA backend.
Shawn O. Pearce4016a932009-05-28 15:12:40 -070046
47Idle::
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 Pursehousea407a3f2016-08-04 14:43:32 +090053 Only shown for MINA backend.
Shawn O. Pearce4016a932009-05-28 15:12:40 -070054
55User::
Shawn O. Pearce099dc172010-01-15 09:41:17 -080056 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. Pearce4016a932009-05-28 15:12:40 -070059
60Remote Host::
61 Reverse lookup hostname, or if -n option is used, the remote
62 IP address.
63
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080064== EXAMPLES
Shawn O. Pearce4016a932009-05-28 15:12:40 -070065
66With reverse DNS lookup (default):
Michael Ochmannb99feab2016-07-06 14:10:22 +020067----
David Shevitzc47f2362018-09-27 10:55:35 -070068$ ssh -p 29418 review.example.com gerrit show-connections
69Session Start Idle User Remote Host
70--------------------------------------------------------------
713abf31e6 20:09:02 00:00:00 jdoe jdoe-desktop.example.com
72--
Michael Ochmannb99feab2016-07-06 14:10:22 +020073----
Shawn O. Pearce4016a932009-05-28 15:12:40 -070074
75Without reverse DNS lookup:
Michael Ochmannb99feab2016-07-06 14:10:22 +020076----
David Shevitzc47f2362018-09-27 10:55:35 -070077$ ssh -p 29418 review.example.com gerrit show-connections -n
78Session Start Idle User Remote Host
79--------------------------------------------------------------
803abf31e6 20:09:02 00:00:00 a/1001240 10.0.0.1
81--
Michael Ochmannb99feab2016-07-06 14:10:22 +020082----
Shawn O. Pearce5500e692009-05-28 15:55:01 -070083
84GERRIT
85------
86Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070087
88SEARCHBOX
89---------