1-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 interaction 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 Secure FTP (SFTP), andthen using the configuration 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 the SSH Server Function RequiredConfiguring the User Interfaces for SSH Clients RequiredConfiguring a Client Public Key Required for public key authentication users andoptional for password authentication usersConfiguring an SSH User OptionalSetting the SSH Management Parameters OptionalGenerating a DSA or RSA Key PairIn the key and algorithm negotiation stage, the DSA or RSA key pair is required to generate the sessionID and for the client to authenticate the server.