It is recommended not to use more than 50 concurrent SSH sessions.
Adding a Host and Providing an SSH Key
To add entries to the global known-hosts configuration file and its SSH value, do the following.
Change to Config mode.
Add an entry to the global known-hosts configuration file and its SSH value.
Verify what keys exist in the host.
RSA2 and a DSA2 host keys are generated by default. The RSA2 key can be used as SSH server and client, while DSA2 key can only be used as SSH client.
When the switch is a server, use RSA key to connect to the device.
When the switch is a client (e.g., downloading image or uploading logs), RSA key is recommended. DSA key is only for legacy devices and has been deprecated by OpenSSH starting with the 7.0 release.
Retrieving Return Codes When Executing Remote Commands
To stop the CLI and set the system to send return errors if some commands fail, do the following.
- Connect to the system from the host SSH.
Add the flag "-h" after "cli" to notify the system to halt on failure and pass through the exit code.