Cisco Cisco SG300-28 28-Port Gigabit Managed Switch Technical References
SSH Client Commands
122
78-20269-01 Command Line Interface Reference Guide
6
User Guidelines
When using the keyword generate, a private key and a public key of the given type
(RSA/DSA) are generated for the SSH client. Downloading a configuration file with
a Key Generating command is not allowed, and such download will fail.
(RSA/DSA) are generated for the SSH client. Downloading a configuration file with
a Key Generating command is not allowed, and such download will fail.
When using the keyword key-pair, the user can import a key-pair created by
another device. In this case, the keys must follow the format specified by RFC
4716.
another device. In this case, the keys must follow the format specified by RFC
4716.
If the specified key already exists, a warning will be issued before replacing the
existing key with a new key.
existing key with a new key.
Use the no ip ssh-client key command to remove a key pair. Use this command
without specifying a key-type to remove both key pairs.
without specifying a key-type to remove both key pairs.
describes the expected behavior of keys, default and users within the
various operations.
If no keys are included in text-based configuration file, the device generates it’s
own keys during initialization. If the Running Configuration contains default keys
(not user-defined), the same default keys remain.
own keys during initialization. If the Running Configuration contains default keys
(not user-defined), the same default keys remain.
Examples
Example 1 - In the following example, a key pair of the RSA type is created:
switchxxxxxx(config)
# ip ssh-client key rsa generate
The SSH service is generating a private RSA key.
Table 3:
Keys, Defaults and Users
From/To
Show
Show (detailed)
Copy/Upload of
Running Config
Running Config
Copy/Upload of
Startup Config
Startup Config
Download
text-based CLI
(TFTP/Backup)
text-based CLI
(TFTP/Backup)
Startup Config
Only
user-defined.
user-defined.
N/A
All keys (default
and user)
and user)
N/A
All keys (default
and user)
and user)
Running Config
Keys are not
displayed.
displayed.
All keys (default
and user)
and user)
N/A
Only user
defined.
defined.
Same as user
configuration
configuration
Text-based CLI
(TFTP/Backup)
(TFTP/Backup)
As it was
copied.
copied.
N/A
All keys (default
and user)
and user)
Only user
defined.
defined.
As a text file.