SSH Client Commands
941
OL-32830-01 Command Line Interface Reference Guide
48
This may take a few minutes, depending on the key size.
Example 2 - In the following example, both public and private keys of the RSA
type are imported (private key as plaintext):
switchxxxxxx(config)#
ip ssh-client key rsa key-pair
Please paste the input now, add a period (.) on a separate line after the input
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQDH6CU/2KYRTIvwS4zvhBmiC4I31m9cR/1iRT+TEr
p9ssqWyI1Ti9d0jzmG0N3jHzp2je5/DUTHZXvYaUzchBDnsPTJo8dyiBl4YBqYHQgCjUhk
1uxRJTAaLVXCBAmuIU/kMLoEox8/zwjB/jsF9wIBIwKBgC2xZyo2GU
FwlQO5f0yweuM11J8McTmqDgfVTRrdbroXwbs3exVqsfaUPY9waDPp4XovEfC/
iglZBSC8SeDmI2U7D6HrkAyD9HHf/5Z7BlHPz2Xczs2clOYTzjLUxy
WS7V/IxbBllipLAkEA/QluVSCfFmdMlZxaEfJVzqPO1cF8guovsWLteBf/gqHuvbHuNy0t
OWEpObKZs1m/mtCWppkgcqgrB0oJaYbUFQJBAMo/cCrZsryeD26NbPEKiak16V
Tz2ayDstidGuuvcvm2YF7DjM/ZLyc5n82okbld1NhDONsCQC4HaHQn
zSU+/lWlDI88As4qJN2DMmGJbtsbVHhQxWIHAG4tBVRPyuan/jnk8irniGyVza
FPAk1XYxA8V39V/a42d7FvRjMckUmKDu9i6sFza2vS3AZQ
afQDE5U6YSMiGLVewC4YWwJBdIlxT8Irzf2cUZGggL+Yl09MuZHbwH
tXaBGj6ayMYvXnloONecnApBjGEm37YVwKjO2DV2w=
-----END RSA PRIVATE KEY-----
-----BEGIN RSA PUBLIC KEY-----
MIGHAoGBAMfoJT/YphGXytisrn5Mi/BLjO+EGaILgjfWb1xH/WJFMVWIxG4n75MSun2yyp
bIjVOL13SPOYbQ3eMfOnaN7n8NRMdle9hpTNyEEOew9Mmjx3KIGXhgGpgdCAKW
jL7W7FElMBotVcQwugSjHz/PCMH+OwX3AgEj
-----END RSA PUBLIC KEY-----
.
Example 3 - In the following example, both public and private keys of the DSA
type are imported (private key as encrypted):
switchxxxxxx(config)#
encrypted ip ssh-client key rsa key-pair
Summary of Contents for 300 Series
Page 2: ......