Document No. 10-300077, Issue 2 4-9
Security
Displaying SSH Connections
CLI Command To display current SSH s essions, use the following CLI com mand:
# show ssh sessions
To end an SSH session, use the following CLI command:
(configure)# clear ssh <session-id>
This functionality is available only in the CLI. You cannot use the Web
Agent to display all current SSH ses sions.
Sample Output Sample output of the show ssh sessions command is as follows:
SessionId User RemoteIp:Port
---------- ---------- --------------
0 jsmith 10.10.6.100:1760
1 sjensen 10.10.8.110:1770
2 gschroeder 10.10.7.130:1771
3 tblair 10.10.6.100:1777
Using the SSH Client
You can use the SSH client to connect to an SSH server that is running on
another machine.
To establish an SSH connection to a remote host, use the following CLI
command:
(configure)# ssh [cipher {3des-cbc | blowfish-cbc}] [port <tcp-
port>] [user <username>] {<ip-addr> | <hostname>}
If you do not specify a cipher, the client can use either cipher. Normally, if
the remote host supports 3DES, that is the cipher that is used. If you do not
specify a TCP port, the client uses port 22. Valid ports are 22 and 9000 to
65,535.