show ssh server sessions
Syntax
show ssh server sessions [vrf <VRF-NAME> | all-vrfs] [vsx-peer]
Description
Shows the active SSH sessions on a specified VRF or on all VRFs. If no VRF is specified, the active sessions on the
default
VRF are shown.
Command context
Operator (>
) or Manager (#
)
Parameters
all-vrfs
Selects all VRFs.
vrf <VRF-NAME>
Specifies a particular VRF name. The name can be
default
,mgmt
, or a configured VRF instance.[vsx-peer]
Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed.
Authority
Administrators
Usage
If you provide the command with a VRF name, the command shows the active SSH session for the specified VRF. Any user can show sessions of all VRFs by using the
all-vrfs
parameter. The maximum number of sessions per VRF is five. The maximum SSH idle session timeout is 60 seconds.
Examples
Showing the active SSH sessions on the default VRF:
switch# show ssh server sessions SSH sessions on VRF default IPv4 SSH Sessions Server IP : 10.1.1.1 Client IP : 10.1.1.2 Client Port : 58835 IPv6 SSH Sessions Server IP : FF01:0:0:0:0:0:0:FB Client IP : FF01:0:0:0:0:0:0:FC Client Port : 58836
Showing the SSH server configuration for all VRFs:
switch# show ssh server sessions all-vrf SSH sessions on VRF mgmt IPv4 SSH Sessions Server IP : 10.1.1.1 Client IP : 10.1.1.2 Client Port : 58835 IPv6 SSH Sessions Server IP : FF01:0:0:0:0:0:0:FB Client IP : FF01:0:0:0:0:0:0:FC Client Port : 58836 SSH sessions on VRF default IPv4 SSH Sessions Server IP : 20.1.1.1 Client IP : 20.1.1.2 Client Port : 58837 IPv6 SSH Sessions Server IP : FF01:0:0:0:0:0:0:FD Client IP : FF01:0:0:0:0:0:0:FE Client Port : 58838