Clear Ssh - Cisco NCS 5000 Series Manual

System security command reference for cisco ncs 5000 series routers
Hide thumbs Also See for Cisco NCS 5000 Series:
Table of Contents

Advertisement

Secure Shell Commands

clear ssh

To terminate an incoming or outgoing Secure Shell (SSH) connection, use the clear ssh command.
clear ssh {session-id| outgoing session-id}
Syntax Description
session-id
outgoing session-id
Command Default
None
Command Modes
XR EXEC mode
Command History
Release
Release 6.0
Usage Guidelines
Use the clear ssh command to disconnect incoming or outgoing SSH connections. Incoming connections are
managed by the SSH server running on the local networking device. Outgoing connections are initiated from
the local networking device.
To display the session ID for a connection, use the show ssh command.
Task ID
Task ID
crypto
Examples
In the following example, the show ssh command is used to display all incoming and outgoing connections
to the router. The clear ssh command is then used to terminate the incoming session with the ID number 0.
RP/0/RP0/CPU0:router#
SSH version: Cisco-2.0
session
--------------------------------------------------------------------
Incoming sessions
0
Session ID number of an incoming connection as displayed in the show ssh
command output. Range is from 0 to 1024.
Specifies the session ID number of an outgoing connection as displayed in the
show ssh command output. Range is from 1 to 10.
show ssh
pty
location
state
vty0 0/33/1
SESSION_OPEN
System Security Command Reference for Cisco NCS 5000 Series Routers
Modification
This command was introduced.
Operations
execute
userid
host
ver
cisco
172.19.72.182
clear ssh
v2
145

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents