Displaying SSH Information
To display information about SSH connections,
enter the show ip ssh
command.
device# show ip ssh Connection Version Username IP Address Inbound: 1 SSH-2 Raymond 10.120.54.2 Outbound: 6 SSH-2 Steve 10.37.77.15 SSH-v2.0 enabled; hostkey: RSA(2048)
To display more detailed information about SSH connections, enter the
show who command.
device# show who Console connections: Established you are connecting to this session 2 minutes 56 seconds in idle SSH server status: Enabled SSH connections (inbound): 1. established, client ip address 10.2.2.1, server hostkey DSA 1 minutes 15 seconds in idle 2. established, client ip address 10.2.2.2, server hostkey RSA 2 minutes 25 seconds in idle SSH connection (outbound): 3. established, server ip address 10.37.77.15, server hostkey RSA 7 seconds in idle
To display SSH configuration information, enter
the show ip ssh config
command.
device# show ip ssh config
SSH server : Enabled
SSH port : tcp\22
Host Key : RSA 3072, ECDSA 384
Encryption : chacha20-poly1305@openssh.com,aes128-gcm@openssh.com,aes256-gcm@openssh.com,
aes128-ctr,aes192-ctr,aes256-ctr
Authentication methods : Password, Public-key, Interactive
Login timeout (seconds) : 120
SCP : Enabled
SSH Client Keys :
Client Rekey : 500000K 30m (KB, Minute)
Server Rekey : 500000K 30m (KB, Minute)