beautypg.com

Show ip ssh, Show public-key, Show ip ssh (897) – LevelOne GTL-2691 User Manual

Page 897

background image

C

HAPTER

28

| Authentication Commands

Secure Shell

– 897 –

R

ELATED

C

OMMANDS

ip ssh crypto host-key generate (895)

show ip ssh

This command displays the connection settings used when authenticating

client access to the SSH server.

C

OMMAND

M

ODE

Privileged Exec

E

XAMPLE

Console#show ip ssh

SSH Enabled - Version 2.0

Negotiation Timeout : 120 seconds; Authentication Retries : 3

Server Key Size : 768 bits

Console#

show public-key

This command shows the public key for the specified user or for the host.

S

YNTAX

show public-key [user [username]| host]

username – Name of an SSH user. (Range: 1-8 characters)

D

EFAULT

S

ETTING

Shows all public keys.

C

OMMAND

M

ODE

Privileged Exec

C

OMMAND

U

SAGE

If no parameters are entered, all keys are displayed. If the user

keyword is entered, but no user name is specified, then the public keys

for all users are displayed.

When an RSA key is displayed, the first field indicates the size of the

host key (e.g., 1024), the second field is the encoded public exponent

(e.g., 35), and the last string is the encoded modulus. When a DSA key

is displayed, the first field indicates that the encryption method used by

SSH is based on the Digital Signature Standard (DSS), and the last

string is the encoded modulus.

E

XAMPLE

Console#show public-key host

Host:

RSA:

1024 65537 13236940658254764031382795526536375927835525327972629521130241

071942106165575942459093923609695405036277525755625100386613098939383452310

332802149888661921595568598879891919505883940181387440468908779160305837768