
Secure Shell Commands
©2008 Allied Telesis Inc. All rights reserved.
Software Version 5.2.1
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
45.3
clear ssh
This command deletes Secure Shell sessions currently active on the device. This includes both
incoming and outgoing sessions. The deleted sessions are closed. You can only delete an SSH
session if you are a system manager or the user who initiated the session.
Syntax
clear ssh
(<1-65535>|
all
)
Mode
Privileged Exec mode
Examples
To stop the current SSH session 123, use the command:
awplus#
clear ssh 123
To stop all SSH sessions active on the device, use the command:
awplus#
clear ssh all
Related Commands
service ssh
ssh
crypto key destroy hostkey
This command deletes the existing public and private keys of the SSH server. Note that for the
server to operate it needs at least one set of hostkeys configured.
Syntax
crypto key destroy hostkey
[
dsa
|
rsa
|
rsa1
]
Mode
Configure mode
Example
To destroy the RSA host key used for SSH version 2 connections, use the command:
awplus(config)#
crypto key destroy hostkey rsa
Related Commands
crypto key generate hostkey
service ssh
Parameters
Description
<1-65535>
or
all
The sessions that you wish to delete. Specify a session ID
<1-65535>
to
delete a specific session. Specify
all
to delete all SSH sessions.
Default: no default
Parameters
Description
dsa
or
rsa
or
rsa
1
The algorithm type of the configured public and private key.
Default: no default
dsa
Delete the DSA public and private keys.
rsa
Deletes the RSA public and private keys configured for SSH
version 2 connections.
rsa1
Deletes the RSA public and private keys configured for SSH
version 1 connections.