2-4Session requestAfter passing authentication, the client sends a session request to the server, while the server listens toand processes the request from the client. After successfully processing the request, the server sendsback to the client an SSH_SMSG_SUCCESS packet and goes on to the interactive session stage withthe client. Otherwise, the server sends back to the client an SSH_SMSG_FAILURE packet, indicatingthat the processing fails or it cannot resolve the request.InteractionIn this stage, the server and the client exchanges data in the following way:z The client encrypts and sends the command to be executed to the server.z The server decrypts and executes the command, and then encrypts and sends the result to theclient.z The client decrypts and displays the result on the terminal.z In the interaction stage, you can execute commands from the client by pasting the commands intext format (the text must be within 2000 bytes). It is recommended that the commands are in thesame view; otherwise, the server may not be able to perform the commands correctly.z If the command text exceeds 2000 bytes, you can execute the commands by saving the text as aconfiguration file, uploading the configuration file to the server through SFTP, and then using theconfiguration file to restart the server.Configuring the Device as an SSH ServerSSH Server Configuration Task ListComplete the following tasks to configure an SSH server:Task RemarksGenerating a DSA or RSA Key Pair RequiredEnabling SSH Server RequiredConfiguring the User Interfaces for SSH Clients RequiredConfiguring a Client Public Key Required for publickey authentication users andoptional for password authentication usersConfiguring an SSH User OptionalSetting the SSH Management Parameters OptionalGenerating a DSA or RSA Key PairThe DSA or RSA key pair will be used to generate the session ID in the key and algorithm negotiationstage and used by the client to authenticate the server.